This is the archived documentation for Angular v5. Please visit angular.io to see documentation for the current version of Angular.

NoopAnimationPlayer

npm Package @angular/animations
Module import { NoopAnimationPlayer } from '@angular/animations';
Source animations/src/players/animation_player.ts

Overview

      
      class NoopAnimationPlayer implements AnimationPlayer {
  constructor()
  parentPlayer: AnimationPlayer | null
  totalTime: 0
  onStart(fn: () => void): void
  onDone(fn: () => void): void
  onDestroy(fn: () => void): void
  hasStarted(): boolean
  init(): void
  play(): void
  triggerMicrotask()
  pause(): void
  restart(): void
  finish(): void
  destroy(): void
  reset(): void
  setPosition(p: number): void
  getPosition(): number
  triggerCallback(phaseName: string): void
}
    

Subclasses

Constructor

      
      constructor()
    

Members

      
      parentPlayer: AnimationPlayer | null
    

      
      totalTime: 0
    

      
      onStart(fn: () => void): void
    

      
      onDone(fn: () => void): void
    

      
      onDestroy(fn: () => void): void
    

      
      hasStarted(): boolean
    

      
      init(): void
    

      
      play(): void
    

      
      triggerMicrotask()
    

      
      pause(): void
    

      
      restart(): void
    

      
      finish(): void
    

      
      destroy(): void
    

      
      reset(): void
    

      
      setPosition(p: number): void
    

      
      getPosition(): number
    

      
      triggerCallback(phaseName: string): void