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

前端 未结 6 1106
执念已碎
执念已碎 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:47

    the best advantage is that it works very smoothly in iPad, iPhone, Android as well as in Safari mac due to hardware acceleration. jquery animations are not smooth on mobile devices. In future CSS animations would get buttery smooth as they are standard but jquery would remain the same. It is more future proof to use these

提交回复
热议问题