Define whether the icon resets to its initial state or keeps the animation.
persistOnAnimateEnd
This allows the animation to remain in the animate
state without returning to the initial
state. This will have no impact in loop
or when the animation ends in the same state as the initial
state.
Note: If the animation is not complete, it will remain in the paused animation state.
initialOnAnimateEnd
This allows you to set the initial
state without transition at the end of the animation. Very useful for rotation animations, for example, which give the impression of returning to the initial
state even though they have the rotation applied.
completeOnStop
This allows the current animation to finish before returning to the initial
state.
Note: If you set it to AnimateIcon
with multiple child icons, it will
wait for the last animation.
API Reference
Prop | Type | Default |
---|---|---|
initialOnAnimateEnd? | boolean | false |
persistOnAnimateEnd? | boolean | false |
completeOnStop? | boolean | false |