Details
-
Type: Improvement
-
Status: Closed
-
Priority: Major
-
Resolution: Invalid
-
Affects Version/s: 2.0.0
-
Fix Version/s: 3.1
-
Component/s: ACE-Components
-
Labels:None
-
Environment:ACE
Description
When a chain of animations happen, there may be need by the application for the affected component to be restored to it's initial state. And with a transitory animation, like highlight, there should be a way to make it unhighlight after the duration is complete.
Since the animations can be chained and are stored in the following format:-
animations[event]
the state that would be required to be saved would be just the first one added to this structure possibly. So the initial style (before animations are applied) could be saved from the node before the animation(s) are applied.
Once saving the originalStyle it can simply be restored like :-
<node>.setStyles(originalStyle);