Hacker News new | ask | show | jobs
by russellbeattie 2848 days ago
I don't use jQuery anymore, but damn do I miss the simplicity of fadeIn() and fadeOut(). Trying to do the same with CSS transitions is much more complicated and brittle.
1 comments

You can use the Web Animations API for this: https://developer.mozilla.org/en-US/docs/Web/API/Web_Animati...
The Web Animations API is nice but it's a working draft that's only supported by FF and Chrome, no Safari or Edge.
Safari (desktop and iOS) is actually getting it in the next release. It's also well-polyfilled, we just add it to our Polyfill.io config.

According to caniuse, global native support is at 74%.