News for hackers. Stuff that matters.
Re:CSS @property and the New Style by MisterKent on Wednesday September 04, 2024 @08:39PM (#41452334)
Which are CSS animations underneath
Re:CSS @property and the New Style by nfw2 on Wednesday September 04, 2024 @09:10PM (#41452518)
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)
Re:CSS @property and the New Style by chefandy on Thursday September 05, 2024 @01:43AM (#41453873)
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.
Re:CSS @property and the New Style by ARCarr on Wednesday September 04, 2024 @09:09PM (#41452510)
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?