linkAnimationPlayer
npm Package | @angular/animations |
---|---|
Module | import { AnimationPlayer } from '@angular/animations'; |
Source | animations/src/players/animation_player.ts |
linkInterface Overview
interface AnimationPlayer {
onDone(fn: () => void): void
onStart(fn: () => void): void
onDestroy(fn: () => void): void
init(): void
hasStarted(): boolean
play(): void
pause(): void
restart(): void
finish(): void
destroy(): void
reset(): void
setPosition(p: any): void
getPosition(): number
parentPlayer: AnimationPlayer | null
get totalTime: number
beforeDestroy?: () => any
triggerCallback?: (phaseName: string) => void
}
linkDescription
AnimationPlayer controls an animation sequence that was produced from a programmatic animation. (see AnimationBuilder for more information on how to create programmatic animations.)
linkClass Implementations
linkMembers
parentPlayer: AnimationPlayer | null