正在加载视频...
视频加载失败
It's 2024, CSS has custom timing functions for your animations and transitions ✨ transition: scale 0.5s var(--elastic-out); --elastic-out: linear( 0 0%, 1.11 8.49%, 1.37 12.94%, 1.36 14.48%, 1.31 16.20%, 0.94 24.01%, 0.86 27.84%, ... );
6 条评论

Can copy and paste them from this @CodePen 🤙 Should be good in Chrome, Safari, and Firefox 🏅 That's where the demo has been tried out

When I see these grids, the first things I think of are : - Robert Penner - ActionScript - Juicy UI Lot of fun

It’s 2024, and still not possible to blend two of those timing functions together despite me explaining to the W3C how to do it more than a decade ago

really cool! it works great for Chrome and Firefox but it felt less smooth for Safari 17.5 - at least in this example: Safari vs Chrome

Yeah, will definitely depend on the accuracy and rounding you go with when exporting 💯 Also, Safari has some quirks with starting-style I've found. Definitely a trial and error to get the right feel, etc. across the board ⭐️

Awesome. My question is: How do you come up with these values used in the timing functions? 😀

