3 ms·
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
by russellbeattie 8y 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.
- dbbk 8y agoYou can use the Web Animations API for this: https://developer.mozilla.org/en-US/docs/Web/API/Web_Animations_API https://developer.mozilla.org/en-US/docs/Web/API/Web_Animati...
- opencl 8y agoThe Web Animations API is nice but it's a working draft that's only supported by FF and Chrome, no Safari or Edge.
- dbbk 8y agoSafari (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%.