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

AnimationDriver

npm Package @angular/animations
Module import { AnimationDriver } from '@angular/animations/browser';
Source animations/browser/src/render/animation_driver.ts

Overview

      
      class AnimationDriver {
  static NOOP: AnimationDriver
  validateStyleProperty(prop: string): boolean
  matchesElement(element: any, selector: string): boolean
  containsElement(elm1: any, elm2: any): boolean
  query(element: any, selector: string, multi: boolean): any[]
  computeStyle(element: any, prop: string, defaultValue?: string): string
  animate(element: any, keyframes: {...}, duration: number, delay: number, easing?: string | null, previousPlayers?: any[]): any
}
    

Subclasses

Static Members

Members

      
      validateStyleProperty(prop: string): boolean
    

      
      matchesElement(element: any, selector: string): boolean
    

      
      containsElement(elm1: any, elm2: any): boolean
    

      
      query(element: any, selector: string, multi: boolean): any[]
    

      
      computeStyle(element: any, prop: string, defaultValue?: string): string
    

      
      animate(element: any, keyframes: {
    [key: string]: string | number;
}[], duration: number, delay: number, easing?: string | null, previousPlayers?: any[]): any