SpringAnimationConfig API Reference
Prop reference
| Title | Type | Default | Description |
|---|---|---|---|
| config | AnimConfig | โ | Spring config preset name or custom config |
| loop | boolean | โ | Whether to loop the animation |
| delay | number | โ | Delay before the animation starts, in milliseconds |
| immediate | boolean | โ | Whether to apply changes immediately without animation |
| reset | boolean | โ | Whether to reset the animation to the 'from' state before starting |
| reverse | boolean | โ | Whether to reverse the animation direction |
| pause | boolean | โ | Whether to pause the animation |
| cancel | boolean | string | string[] | (() => void) | โ | Whether to cancel the animation |
| onRest | OnRest<any, any> | โ | Callback when the animation comes to rest |
* Props marked with an asterisk are required.
CSS target reference
There are no corresponding CSS targets for this API.