V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
shenhualv7
V2EX  ›  问与答

请问看见漂亮的页面效果 canvas 动画时,有没有办法用浏览器的审查元素跟踪学习它的具体实现呢?

  •  
  •   shenhualv7 · Aug 13, 2022 · 1911 views
    This topic created in 1361 days ago, the information mentioned may be changed or developed.
    4 replies    2022-08-14 21:24:27 +08:00
    i0error
        1
    i0error  
       Aug 13, 2022
    Sources ,F8 或者 Command+\ 暂停
    des
        2
    des  
       Aug 13, 2022
    不需要跟踪,直接看代码就行
    https://github.com/BNDong/Cnblogs-Theme-SimpleMemory
    dumbass
        3
    dumbass  
       Aug 13, 2022 via iPhone
    如果源码是打包后的,那很难看到具体实现方法
    Mutoo
        4
    Mutoo  
       Aug 14, 2022   ❤️ 1
    @bojackhorseman 但是源码留了落款了,还是可以找到的呀。以下是具体实现:

    https://github.com/BNDong/Cnblogs-Theme-SimpleMemory/blob/v1.2.3/src/script/MyTween.js

    不过想学这类特效还是推荐 https://offscreencanvas.com/issues 可以比较系统的学习。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2695 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 09:54 · PVG 17:54 · LAX 02:54 · JFK 05:54
    ♥ Do have faith in what you're doing.