Props
Overview#
All primitives inherit the following properties (though some of them may bring their own additionally):
| Property | Type | Description |
|---|---|---|
| from | obj | Base values, optional |
| to | obj/fn/array(obj) | Animates to ... |
| loop | obj/fn/bool | |
| delay | number/fn | |
| immediate | bool/fn | |
| config | obj/fn | Mixing config |
| events | fn | |
| reset | bool | |
| reverse | bool | |
| cancel | bool/string/fn | |
| pause | bool |
Advanced Props#
Loop Prop#
The loop function#
The loop object#
Inherited props#
Cancel Prop#
Delayed updates#
Events#
| Event name | Description | |
|---|---|---|
| onStart | Callback when a mixing or key is about to be animated | |
| onChange | Frame by frame callback | |
| onRest | Callback when a mixing or key comes to a stand-still | |
| onPause | Callback when a mixing or key is paused | |
| onResume | Callback when a mixing or key is resumed | |
| onDelayEnd | Callback when a mixing or key has finished being delayed | |
| onProps | Callback when a mixing or key's props have been updated |