W3cubDocs

/Angular 4 TypeScript

AnimationPlayer

Experimental Class

Class Overview

class 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
}

Class Description

Class Details

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

exported from animations/index, defined in animations/src/players/animation_player.ts

© 2010–2017 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://angular.io/docs/ts/latest/api/animations/index/AnimationPlayer-class.html