Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/pptr/mod.ts>Protocol.Animation.Animation

Headless Chrome Deno API
Latest
interface Protocol.Animation.Animation
import { type Protocol } from "https://deno.land/x/pptr@1.2.0/mod.ts";
const { Animation } = Protocol.Animation;

Animation instance.

Properties

id: string

Animation's id.

name: string

Animation's name.

pausedState: boolean

Animation's internal paused state.

playState: string

Animation's play state.

playbackRate: number

Animation's playback rate.

startTime: number

Animation's start time.

currentTime: number

Animation's current time.

type: "CSSTransition" | "CSSAnimation" | "WebAnimation"

Animation type of Animation. (AnimationType enum)

optional
source: AnimationEffect

Animation's source animation node.

optional
cssId: string

A unique ID for Animation representing the sources that triggered this CSS animation/transition.

Properties

id: string

Animation's id.

name: string

Animation's name.

pausedState: boolean

Animation's internal paused state.

playState: string

Animation's play state.

playbackRate: number

Animation's playback rate.

startTime: number

Animation's start time.

currentTime: number

Animation's current time.

type: "CSSTransition" | "CSSAnimation" | "WebAnimation"

Animation type of Animation. (AnimationType enum)

optional
source: AnimationEffect

Animation's source animation node.

optional
cssId: string

A unique ID for Animation representing the sources that triggered this CSS animation/transition.

Properties

delay: number

AnimationEffect's delay.

endDelay: number

AnimationEffect's end delay.

iterationStart: number

AnimationEffect's iteration start.

iterations: number

AnimationEffect's iterations.

duration: number

AnimationEffect's iteration duration.

direction: string

AnimationEffect's playback direction.

fill: string

AnimationEffect's fill mode.

optional
backendNodeId: DOM.BackendNodeId

AnimationEffect's target node.

optional
keyframesRule: KeyframesRule

AnimationEffect's keyframes.

easing: string

AnimationEffect's timing function.

Properties

optional
name: string

CSS keyframed animation's name.

keyframes: KeyframeStyle[]

List of animation keyframes.

Properties

offset: string

Keyframe's time offset.

easing: string

AnimationEffect's timing function.

Properties

id: string

Id of animation.

Properties

currentTime: number

Current time of the page.

Properties

playbackRate: number

Playback rate for animations on page.

Properties

animations: string[]

List of animation ids to seek.

Properties

animationId: string

Animation id.

Properties

remoteObject: Runtime.RemoteObject

Corresponding remote object.

Properties

animations: string[]

List of animation ids to seek.

currentTime: number

Set the current time of each animation.

Properties

animations: string[]

Animations to set the pause state of.

paused: boolean

Paused state to set to.

Properties

playbackRate: number

Playback rate for animations on page

Properties

animationId: string

Animation id.

duration: number

Duration of the animation.

delay: number

Delay of the animation.

Properties

id: string

Id of the animation that was cancelled.

Properties

id: string

Id of the animation that was created.

Properties

animation: Animation

Animation that was started.

enum Protocol.Animation.Animation
import { Protocol } from "https://deno.land/x/pptr@1.2.0/mod.ts";
const { Animation } = Protocol.Animation;

Members

CSSAnimation = "CSSAnimation"
CSSTransition = "CSSTransition"
WebAnimation = "WebAnimation"