We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
第68天 js动画和css动画有什么区别?
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
能用css实现的动画 就用css实现
js 动画 会进入函数调用栈,走完事件循环才会走渲染,如果过程中还有频繁获取 dom 状态恐怕是药丸。 但相比 css 动画(不考虑 css 变量),js 动画可配置目标值或速率等,搭配 transition 挺不错。 且 js 动画做暂停、反向和复杂的节奏都要更棒。 再比如弧形运动轨迹,对 css 动画而言恐怕就比较难搞了。 css 动画 非常简易的 hover active checked 等动效用 css 来写真是太方便了。 对循环播放的动画,多数情况下也是 css 动画更佳。 css 动画库的复用感觉会相较高很多。 至于所谓的 gpu 加速或 will-change 很难讲哟,真的有效,但却不是很懂。
No branches or pull requests
第68天 js动画和css动画有什么区别?
The text was updated successfully, but these errors were encountered: