An Interest In:
Web News this Week
- April 12, 2024
- April 11, 2024
- April 10, 2024
- April 9, 2024
- April 8, 2024
- April 7, 2024
- April 6, 2024
November 3, 2020 10:59 pm GMT
Original Link: https://danielcwilson.com/blog/2020/10/additive-css-animations/
Additive Animations in CSS
Daniel C. Wilson explains how with CSS @keyframe
animations, when multiple of them are applied to an element, they do both work. But if any properties are repeated, only the last one works. They override each other. I’ve seen this limitation overcome by applying keyframes to nested elements so you don’t have to do deal with that fighting.
But the Web Animation API (WAAPI) in JavaScript has a way to do additive animations. It’s a matter of adding composite: "add"
… Read article “Additive Animations in CSS”
The post Additive Animations in CSS appeared first on CSS-Tricks.
You can support CSS-Tricks by being an MVP Supporter.
Original Link: https://danielcwilson.com/blog/2020/10/additive-css-animations/
Share this article:
Tweet
View Full Article