W3cubDocs

/Angular 2

AnimationPlayer

Experimental Class

Class Overview

class AnimationPlayer {
  onDone(fn: () => void) : void
  onStart(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
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 @angular/core/index, defined in @angular/core/src/animation/animation_player.ts

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