2 ms·
Well you’d just use some library that solves that problem instead of every app having to do it twice.
by emodendroket 4y ago
Well you’d just use some library that solves that problem instead of every app having to do it twice.
- illiarian 4y agoThere are no libraries that solve that in a generic easy-usable way. Because animations shift layout
- DaiPlusPlus 4y agoCSS has lots of non-layout-shifting animation techniques - obviously there’s stuff like only changing colours, images, backgrounds, and effects like box-shadow, but things like animating the transform: property are also “layout safe” and very high performance because they’re applied after layout: https://web.dev/animations-guide/ https://web.dev/animations-guide/
- raydev 4y agoThere would be no web-based option in 2007, especially on a mobile device, that could guarantee 60fps out of the box like Apple's APIs did.