Control how and when the icon animates.
animate
This sets the animate
state.
animateOnHover
This sets the state to animate
on hover.
animateOnTap
This sets the state to animate
on tap.
Note: The state will return to its initial state when the click is
released. To ensure that the animation always ends, add the completeOnStop
prop.
animateOnView
This sets the animate
state when the icon is in view.
animateOnViewMargin
This sets the margin of the in view area.
animateOnViewOnce
This sets the icon to animate only once when it is in view (by default it is true
).
API Reference
Prop | Type | Default |
---|---|---|
animate? | boolean | string | false |
animateOnHover? | boolean | string | false |
animateOnTap? | boolean | string | false |
animateOnView? | boolean | string | false |
animateOnViewMargin? | string | 0px |
animateOnViewOnce? | boolean | true |