Cookies concent notice

This site uses cookies from Google to deliver its services and to analyze traffic.
Learn more
Skip to main content
This site is no longer updated.Head to Angular.devHome
/

This is the archived documentation for Angular v17. Please visit angular.dev to see this page for the current version of Angular.

AnimationDriver

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

Static properties

Property Description
static NOOP: AnimationDriver

Deprecated Use the NoopAnimationDriver class.

Properties

Property Description
abstract validateAnimatableStyleProperty?: (prop: string) => boolean

Methods

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

boolean

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

Deprecated No longer in use. Will be removed.

Parameters
element any
selector string
Returns

boolean

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

boolean

Obtains the parent element, if any. null is returned if the element does not have a parent.

      
      abstract getParentElement(element: unknown): unknown
    
Parameters
element unknown
Returns

unknown

      
      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
    
Parameters
element any
prop string
defaultValue string

Optional. Default is undefined.

Returns

string

      
      abstract animate(element: any, keyframes: Map<string, string | number>[], duration: number, delay: number, easing?: string, previousPlayers?: any[], scrubberAccessRequested?: boolean): any
    
Parameters
element any
keyframes Map<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