Help Angular by taking a 1 minute survey!Go to surveyHome

AnimationDriver

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

Static properties

Property Description
static NOOP: AnimationDriver

Methods

abstract validateStyleProperty(prop: string): boolean
      
      abstract validateStyleProperty(prop: string): boolean
    
Parameters
prop string
Returns

boolean

abstract matchesElement(element: any, selector: string): boolean
      
      abstract matchesElement(element: any, selector: string): boolean
    
Parameters
element any
selector string
Returns

boolean

abstract containsElement(elm1: any, elm2: any): boolean
      
      abstract containsElement(elm1: any, elm2: any): boolean
    
Parameters
elm1 any
elm2 any
Returns

boolean

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

any[]

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

Optional. Default is undefined.

Returns

string

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

Optional. Default is undefined.

previousPlayers any[]

Optional. Default is undefined.

scrubberAccessRequested boolean

Optional. Default is undefined.

Returns

any