3 ms·
Why does this framework treat css3 animations as though they have no interface with JavaScript events, or that animations can't be paused or stopped through CSS
by dclowd9901 14y ago
Why does this framework treat css3 animations as though they have no interface with JavaScript events, or that animations can't be paused or stopped through CSS alone?
- lvivski 14y agoPure CSS animations can be paused and resumed via Javascript. It's not trivial to stop them and preserve last known state of the node, and apply next animation so that is starts with that state. Controling CSS Transitions is even more difficult and requires multiple actions like: remember current transform, remove transition, apply remembered transform etc. Yes, CSS Animations have events for animation start and end, but Anima gives intermediate events, for any transformation in a set. So it's not impossible to control CSS animations, but it's much easier with Anima. In `CSS` mode Anima has `pause()` `resume()` and `stop()` methods