Options for the useAnimationMachine hook.
const options: UseAnimationMachineOptions = { autoPlay: true, initialSpeed: 1.0, onStateChange: (state) => console.log('State:', state)}; Copy
const options: UseAnimationMachineOptions = { autoPlay: true, initialSpeed: 1.0, onStateChange: (state) => console.log('State:', state)};
Optional
Automatically start playing initial animation
Initial playback speed
Callback when animation completes
Callback when state changes
Options for the useAnimationMachine hook.
Example