import Animation from 'chrome-remote-interface-extra/lib/animations/Animation.js'Animation
Utility class for working with CDP Animation type
Constructor Summary
| Public Constructor | ||
| public |
constructor(manager: AnimationManager, cdpAnimation: CDPAnimation) |
|
Member Summary
| Private Members | ||
| private |
|
|
| private |
|
|
| private |
|
|
Method Summary
| Public Methods | ||
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
Pause the animation |
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
Releases the animation such that it is no longer be manipulated |
|
| public |
|
|
| public |
Seeks the animation to a particular time within each animation |
|
| public |
Sets the timing of the animation. |
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
Un-pause the animation |
|
| public |
async updateCurrentTime(): Promise<number> Retrieves and updates this instances currentTime value |
|
| Private Methods | ||
| private |
|
|
Public Constructors
public constructor(manager: AnimationManager, cdpAnimation: CDPAnimation) source
Params:
| Name | Type | Attribute | Description |
| manager | AnimationManager | ||
| cdpAnimation | CDPAnimation |
Public Methods
public async release(): Promise<void> source
Releases the animation such that it is no longer be manipulated
public async seek(currentTime: number): Promise<void> source
Seeks the animation to a particular time within each animation
Params:
| Name | Type | Attribute | Description |
| currentTime | number | Set the current time of each animation |
public async setTiming(duration: number, delay: number): Promise<void> source
Sets the timing of the animation.
public async updateCurrentTime(): Promise<number> source
Retrieves and updates this instances currentTime value
