Is there any advantage to using CSS animations over jQuery animations? (performance, or otherwise)

前端 未结 6 1051
执念已碎
执念已碎 2021-01-12 11:59

I mean, CSS animations are cool, but CSS3 compliance is annoyingly un-standard. but, ignoring all the issues with browsers and their inability to be up-to-date with the late

6条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-12 12:50

    CSS animations have the benefit of potentially being hardware accelerated. Here's a demo of Scripty2 (I know, it's not jQuery - but same principles) that demonstrates this very well.

    http://scripty2.com/hardware-acceleration/

提交回复
热议问题