Re:CSS @property and the New Style
by MisterKent on Wednesday September 04, 2024 @08:39PM
(#41452334)
Which are CSS animations underneath
[ Parent
| on HN ]
Yes, but you define them with Javascript rather than in CSS which is a key difference since the syntax is more intuitive for some (myself included)
So since the original comment was questioning the necessity of animations in CSS, and JS is essentially using CSS animations for many things, I'd say the answer is yes. It's also a great way for UI designers to use subtle movement to hint at actions/status/next steps/etc without having to execute any JavaScript. When you've got a purely visual task, I'd say involving a general purpose programming tool is the unnecessary part— like using sed or the like vs opening up a repl in Python or whatever.
Shhh, don't tell him that.
Re:CSS @property and the New Style
by mattgperry on Thursday September 05, 2024 @03:27AM
(#41454379)
No - CSS and JavaScript are two ways of defining the same thing, an animation. Safari runs its accelerated animations with CoreAnimation - is CoreAnimation a CSS animation?