AnimationDriver

class

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: {...}, duration: number, delay: number, easing?: string | null, previousPlayers?: any[], scrubberAccessRequested?: boolean): any
}

Subclasses

Static properties

Property Description
static NOOP: AnimationDriver

Methods

abstract validateStyleProperty(prop: string): boolean

Parameters

prop

Type: string.

Returns

boolean

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

Parameters

element

Type: any.

selector

Type: string.

Returns

boolean

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

Parameters

elm1

Type: any.

elm2

Type: any.

Returns

boolean

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

Parameters

element

Type: any.

selector

Type: string.

multi

Type: boolean.

Returns

any[]

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

Parameters

element

Type: any.

prop

Type: string.

defaultValue

Type: string.

Optional. Default is undefined.

Returns

string

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

Parameters

element

Type: any.

keyframes

Type: { [key: string]: string | number; }[].

duration

Type: number.

delay

Type: number.

easing

Type: string | null.

Optional. Default is undefined.

previousPlayers

Type: any[].

Optional. Default is undefined.

scrubberAccessRequested

Type: boolean.

Optional. Default is undefined.

Returns

any

© 2010–2019 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v6.angular.io/api/animations/browser/AnimationDriver