V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
爱意满满的作品展示区。
gaoryrt
V2EX  ›  分享创造

缓动元素跟随光标效果

  •  
  •   gaoryrt ·
    gaoryrt · 2019-06-25 18:54:01 +08:00 · 1772 次点击
    这是一个创建于 1756 天前的主题,其中的信息可能已经有所发展或是发生改变。

    最近看到很多国外站点做了这种使用缓动元素跟随光标的设计:

    然后做了个类似的东西: https://github.com/gaoryrt/cursor-dot

    其实就是骗 star

    5 条回复    2019-06-28 14:42:29 +08:00
    azh7138m
        1
    azh7138m  
       2019-06-26 14:58:02 +08:00
    mix-blend-mode 这个属性挺有意思
    azh7138m
        2
    azh7138m  
       2019-06-26 15:14:16 +08:00
    看上去滚动没有触发 mouseout,hover 之后,触控板滚动,样式不会变回去
    似乎是 chrome45 开始引入的
    https://www.chromestatus.com/feature/5697181675683840
    gaoryrt
        3
    gaoryrt  
    OP
       2019-06-26 17:54:22 +08:00
    @azh7138m issue 了,感恩
    jinzhe
        4
    jinzhe  
       2019-06-27 11:42:17 +08:00
    鼠标滚轮滚动的时候感觉有失控感
    gaoryrt
        5
    gaoryrt  
    OP
       2019-06-28 14:42:29 +08:00
    @jinzhe 貌似就是二楼说的 https://github.com/gaoryrt/cursor-dot/issues/1 这个问题
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5422 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 07:16 · PVG 15:16 · LAX 00:16 · JFK 03:16
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.