NoopAnimationPlayer
An empty programmatic controller for reusable animations. Used internally when animations are disabled, to avoid checking for the null case when an animation player is expected.
class NoopAnimationPlayer implements AnimationPlayer {
constructor(duration: number = 0, delay: number = 0)
parentPlayer: AnimationPlayer | null
totalTime: number
onStart(fn: () => void): void
onDone(fn: () => void): void
onDestroy(fn: () => void): void
hasStarted(): boolean
init(): void
play(): void
pause(): void
restart(): void
finish(): void
destroy(): void
reset(): void
setPosition(position: number): void
getPosition(): number
}
Subclasses
See also
animate()
GroupPlayer
Constructor
Properties
Property | Description |
---|---|
parentPlayer: AnimationPlayer | null
|
|
totalTime: number
|
Read-only. |
Methods
ParametersThere are no parameters. Returns
|
ParametersThere are no parameters. Returns
|
ParametersThere are no parameters. Returns
|
ParametersThere are no parameters. Returns
|
ParametersThere are no parameters. Returns
|
ParametersThere are no parameters. Returns
|
ParametersThere are no parameters. Returns
|
ParametersThere are no parameters. Returns
|
ParametersThere are no parameters. Returns
|