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
}
Subclasses
Static properties
Property | Description |
---|---|
static NOOP: AnimationDriver
|
Deprecated Use the NoopAnimationDriver class. |
Properties
Property | Description |
---|---|
abstract validateAnimatableStyleProperty?: (prop: string) => boolean
|
Methods
validateStyleProperty() |
---|
matchesElement() |
---|
containsElement() |
---|
getParentElement() |
---|
Obtains the parent element, if any. |
query() | |||||||||
---|---|---|---|---|---|---|---|---|---|
Parameters
Returns
|
computeStyle() |
---|
animate() | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Parameters
Returns
|