Home Reference Source
public class | since chrome-remote-interface-extra | source

Animation

Utility class for working with CDP Animation type

See:

Constructor Summary

Public Constructor
public

constructor(manager: AnimationManager, cdpAnimation: CDPAnimation)

Member Summary

Private Members
private
private
private

Method Summary

Public Methods
public
public
public

id(): string

public
public

async pause(): Promise<void>

Pause the animation

public
public
public
public

async release(): Promise<void>

Releases the animation such that it is no longer be manipulated

public
public

async seek(currentTime: number): Promise<void>

Seeks the animation to a particular time within each animation

public

async setTiming(duration: number, delay: number): Promise<void>

Sets the timing of the animation.

public
public
public
public
public
public

async unpause(): Promise<void>

Un-pause the animation

public

Retrieves and updates this instances currentTime value

Private Methods
private

Public Constructors

public constructor(manager: AnimationManager, cdpAnimation: CDPAnimation) source

Params:

NameTypeAttributeDescription
manager AnimationManager
cdpAnimation CDPAnimation

Private Members

private _animation: CDPAnimation source

private _manager: AnimationManager source

private _released: boolean source

Public Methods

public cssId(): string source

Return:

string

public currentTime(): number source

Return:

number

public id(): string source

Return:

string

public name(): string source

Return:

string

public async pause(): Promise<void> source

Pause the animation

Return:

Promise<void>

public pausedState(): boolean source

Return:

boolean

public playState(): string source

Return:

string

public playbackRate(): number source

Return:

number

public async release(): Promise<void> source

Releases the animation such that it is no longer be manipulated

Return:

Promise<void>

public released(): boolean source

Return:

boolean

public async seek(currentTime: number): Promise<void> source

Seeks the animation to a particular time within each animation

Params:

NameTypeAttributeDescription
currentTime number

Set the current time of each animation

Return:

Promise<void>

public async setTiming(duration: number, delay: number): Promise<void> source

Sets the timing of the animation.

Params:

NameTypeAttributeDescription
duration number

Duration of the animation

delay number

Delay of the animation

Return:

Promise<void>

public source(): CDPAnimationEffect source

public startTime(): number source

Return:

number

public toJSON(): CDPAnimation source

Return:

CDPAnimation

public toString(): string source

Return:

string

public type(): string source

Return:

string

public async unpause(): Promise<void> source

Un-pause the animation

Return:

Promise<void>

public async updateCurrentTime(): Promise<number> source

Retrieves and updates this instances currentTime value

Return:

Promise<number>

Private Methods

private _assertNotReleased() source