# Interface: PlaybackOptions<V>
Playback options common to all animations.
# Type parameters
Name |
---|
V |
# Table of contents
# Properties
- autoplay
- driver
- elapsed
- from
- onComplete
- onPlay
- onRepeat
- onStop
- onUpdate
- repeat
- repeatDelay
- repeatType
- type
# Properties
# autoplay
• Optional
autoplay: boolean
Whether to autoplay the animation when animate is called. If set to false, the animation must be started manually via the returned play method.
# driver
• Optional
driver: Driver
# elapsed
• Optional
elapsed: number
# from
• Optional
from: V
# onComplete
• Optional
onComplete: () => void
# Type declaration
▸ (): void
Returns: void
# onPlay
• Optional
onPlay: () => void
# Type declaration
▸ (): void
Returns: void
# onRepeat
• Optional
onRepeat: () => void
# Type declaration
▸ (): void
Returns: void
# onStop
• Optional
onStop: () => void
# Type declaration
▸ (): void
Returns: void
# onUpdate
• Optional
onUpdate: (latest
: V) => void
# Type declaration
▸ (latest
: V): void
# Parameters
Name | Type |
---|---|
latest | V |
Returns: void
# repeat
• Optional
repeat: number
# repeatDelay
• Optional
repeatDelay: number
# repeatType
• Optional
repeatType: "loop"
| "reverse"
| "mirror"
# type
• Optional
type: "spring"
| "decay"
| "keyframes"