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

MockAnimationDriver

      
      class MockAnimationDriver implements AnimationDriver {
  static log: AnimationPlayer[]
  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, previousPlayers: any[] = []): MockAnimationPlayer
}
    

Static properties

Property Description
static log: AnimationPlayer[]

Methods

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

boolean

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

boolean

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

boolean

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

any[]

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

Optional. Default is undefined.

Returns

string

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

Optional. Default is [].

Returns

MockAnimationPlayer