Re:Anima — tool for CSS3 Animations
by dclowd9901 on Thursday February 14, 2013 @10:44AM
(#5219928)
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?
[ Parent
| on HN ]
Pure 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