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 log: AnimationPlayer[] |
方法
参数
返回值
|
参数
返回值 |