top | item 41452280

(no title)

ARCarr | 1 year ago

Good news! You can with the Web Animations API.

discuss

order

armandososa|1 year ago

Just recently I had to code a little but complex animation and I ended up using the web animations API. It's nice, it was a lot less code than the css counterpart.

But, if I* have to write this same animation in two years and @property is widely available, I'll reach up for that first.

*To be honest, it will be 100% an LLM that writes it for me.

MisterKent|1 year ago

Which are CSS animations underneath

nfw2|1 year ago

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)

mattgperry|1 year ago

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?

ARCarr|1 year ago

Shhh, don't tell him that.