cdproto: github.com/chromedp/cdproto/animation Index | Files

package animation

import "github.com/chromedp/cdproto/animation"

Package animation provides the Chrome DevTools Protocol commands, types, and events for the Animation domain.

Generated by the cdproto-gen command.

Index

Package Files

animation.go easyjson.go events.go types.go

Constants

const (
    CommandDisable           = "Animation.disable"
    CommandEnable            = "Animation.enable"
    CommandGetCurrentTime    = "Animation.getCurrentTime"
    CommandGetPlaybackRate   = "Animation.getPlaybackRate"
    CommandReleaseAnimations = "Animation.releaseAnimations"
    CommandResolveAnimation  = "Animation.resolveAnimation"
    CommandSeekAnimations    = "Animation.seekAnimations"
    CommandSetPaused         = "Animation.setPaused"
    CommandSetPlaybackRate   = "Animation.setPlaybackRate"
    CommandSetTiming         = "Animation.setTiming"
)

Command names.

type Animation Uses

type Animation struct {
    ID           string  `json:"id"`               // Animation's id.
    Name         string  `json:"name"`             // Animation's name.
    PausedState  bool    `json:"pausedState"`      // Animation's internal paused state.
    PlayState    string  `json:"playState"`        // Animation's play state.
    PlaybackRate float64 `json:"playbackRate"`     // Animation's playback rate.
    StartTime    float64 `json:"startTime"`        // Animation's start time.
    CurrentTime  float64 `json:"currentTime"`      // Animation's current time.
    Type         Type    `json:"type"`             // Animation type of Animation.
    Source       *Effect `json:"source,omitempty"` // Animation's source animation node.
    CSSID        string  `json:"cssId,omitempty"`  // A unique ID for Animation representing the sources that triggered this CSS animation/transition.
}

Animation animation instance.

See: https://chromedevtools.github.io/devtools-protocol/tot/Animation#type-Animation

func (Animation) MarshalEasyJSON Uses

func (v Animation) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Animation) MarshalJSON Uses

func (v Animation) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Animation) UnmarshalEasyJSON Uses

func (v *Animation) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Animation) UnmarshalJSON Uses

func (v *Animation) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type DisableParams Uses

type DisableParams struct{}

DisableParams disables animation domain notifications.

func Disable Uses

func Disable() *DisableParams

Disable disables animation domain notifications.

See: https://chromedevtools.github.io/devtools-protocol/tot/Animation#method-disable

func (*DisableParams) Do Uses

func (p *DisableParams) Do(ctx context.Context) (err error)

Do executes Animation.disable against the provided context.

func (DisableParams) MarshalEasyJSON Uses

func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (DisableParams) MarshalJSON Uses

func (v DisableParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*DisableParams) UnmarshalEasyJSON Uses

func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*DisableParams) UnmarshalJSON Uses

func (v *DisableParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Effect Uses

type Effect struct {
    Delay          float64           `json:"delay"`                   // AnimationEffect's delay.
    EndDelay       float64           `json:"endDelay"`                // AnimationEffect's end delay.
    IterationStart float64           `json:"iterationStart"`          // AnimationEffect's iteration start.
    Iterations     float64           `json:"iterations"`              // AnimationEffect's iterations.
    Duration       float64           `json:"duration"`                // AnimationEffect's iteration duration.
    Direction      string            `json:"direction"`               // AnimationEffect's playback direction.
    Fill           string            `json:"fill"`                    // AnimationEffect's fill mode.
    BackendNodeID  cdp.BackendNodeID `json:"backendNodeId,omitempty"` // AnimationEffect's target node.
    KeyframesRule  *KeyframesRule    `json:"keyframesRule,omitempty"` // AnimationEffect's keyframes.
    Easing         string            `json:"easing"`                  // AnimationEffect's timing function.
}

Effect animationEffect instance.

See: https://chromedevtools.github.io/devtools-protocol/tot/Animation#type-AnimationEffect

func (Effect) MarshalEasyJSON Uses

func (v Effect) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Effect) MarshalJSON Uses

func (v Effect) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Effect) UnmarshalEasyJSON Uses

func (v *Effect) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Effect) UnmarshalJSON Uses

func (v *Effect) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EnableParams Uses

type EnableParams struct{}

EnableParams enables animation domain notifications.

func Enable Uses

func Enable() *EnableParams

Enable enables animation domain notifications.

See: https://chromedevtools.github.io/devtools-protocol/tot/Animation#method-enable

func (*EnableParams) Do Uses

func (p *EnableParams) Do(ctx context.Context) (err error)

Do executes Animation.enable against the provided context.

func (EnableParams) MarshalEasyJSON Uses

func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EnableParams) MarshalJSON Uses

func (v EnableParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EnableParams) UnmarshalEasyJSON Uses

func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EnableParams) UnmarshalJSON Uses

func (v *EnableParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventAnimationCanceled Uses

type EventAnimationCanceled struct {
    ID string `json:"id"` // Id of the animation that was cancelled.
}

EventAnimationCanceled event for when an animation has been cancelled.

See: https://chromedevtools.github.io/devtools-protocol/tot/Animation#event-animationCanceled

func (EventAnimationCanceled) MarshalEasyJSON Uses

func (v EventAnimationCanceled) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventAnimationCanceled) MarshalJSON Uses

func (v EventAnimationCanceled) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventAnimationCanceled) UnmarshalEasyJSON Uses

func (v *EventAnimationCanceled) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventAnimationCanceled) UnmarshalJSON Uses

func (v *EventAnimationCanceled) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventAnimationCreated Uses

type EventAnimationCreated struct {
    ID string `json:"id"` // Id of the animation that was created.
}

EventAnimationCreated event for each animation that has been created.

See: https://chromedevtools.github.io/devtools-protocol/tot/Animation#event-animationCreated

func (EventAnimationCreated) MarshalEasyJSON Uses

func (v EventAnimationCreated) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventAnimationCreated) MarshalJSON Uses

func (v EventAnimationCreated) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventAnimationCreated) UnmarshalEasyJSON Uses

func (v *EventAnimationCreated) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventAnimationCreated) UnmarshalJSON Uses

func (v *EventAnimationCreated) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventAnimationStarted Uses

type EventAnimationStarted struct {
    Animation *Animation `json:"animation"` // Animation that was started.
}

EventAnimationStarted event for animation that has been started.

See: https://chromedevtools.github.io/devtools-protocol/tot/Animation#event-animationStarted

func (EventAnimationStarted) MarshalEasyJSON Uses

func (v EventAnimationStarted) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventAnimationStarted) MarshalJSON Uses

func (v EventAnimationStarted) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventAnimationStarted) UnmarshalEasyJSON Uses

func (v *EventAnimationStarted) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventAnimationStarted) UnmarshalJSON Uses

func (v *EventAnimationStarted) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetCurrentTimeParams Uses

type GetCurrentTimeParams struct {
    ID string `json:"id"` // Id of animation.
}

GetCurrentTimeParams returns the current time of the an animation.

func GetCurrentTime Uses

func GetCurrentTime(id string) *GetCurrentTimeParams

GetCurrentTime returns the current time of the an animation.

See: https://chromedevtools.github.io/devtools-protocol/tot/Animation#method-getCurrentTime

parameters:

id - Id of animation.

func (*GetCurrentTimeParams) Do Uses

func (p *GetCurrentTimeParams) Do(ctx context.Context) (currentTime float64, err error)

Do executes Animation.getCurrentTime against the provided context.

returns:

currentTime - Current time of the page.

func (GetCurrentTimeParams) MarshalEasyJSON Uses

func (v GetCurrentTimeParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetCurrentTimeParams) MarshalJSON Uses

func (v GetCurrentTimeParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetCurrentTimeParams) UnmarshalEasyJSON Uses

func (v *GetCurrentTimeParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetCurrentTimeParams) UnmarshalJSON Uses

func (v *GetCurrentTimeParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetCurrentTimeReturns Uses

type GetCurrentTimeReturns struct {
    CurrentTime float64 `json:"currentTime,omitempty"` // Current time of the page.
}

GetCurrentTimeReturns return values.

func (GetCurrentTimeReturns) MarshalEasyJSON Uses

func (v GetCurrentTimeReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetCurrentTimeReturns) MarshalJSON Uses

func (v GetCurrentTimeReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetCurrentTimeReturns) UnmarshalEasyJSON Uses

func (v *GetCurrentTimeReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetCurrentTimeReturns) UnmarshalJSON Uses

func (v *GetCurrentTimeReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetPlaybackRateParams Uses

type GetPlaybackRateParams struct{}

GetPlaybackRateParams gets the playback rate of the document timeline.

func GetPlaybackRate Uses

func GetPlaybackRate() *GetPlaybackRateParams

GetPlaybackRate gets the playback rate of the document timeline.

See: https://chromedevtools.github.io/devtools-protocol/tot/Animation#method-getPlaybackRate

func (*GetPlaybackRateParams) Do Uses

func (p *GetPlaybackRateParams) Do(ctx context.Context) (playbackRate float64, err error)

Do executes Animation.getPlaybackRate against the provided context.

returns:

playbackRate - Playback rate for animations on page.

func (GetPlaybackRateParams) MarshalEasyJSON Uses

func (v GetPlaybackRateParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetPlaybackRateParams) MarshalJSON Uses

func (v GetPlaybackRateParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetPlaybackRateParams) UnmarshalEasyJSON Uses

func (v *GetPlaybackRateParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetPlaybackRateParams) UnmarshalJSON Uses

func (v *GetPlaybackRateParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetPlaybackRateReturns Uses

type GetPlaybackRateReturns struct {
    PlaybackRate float64 `json:"playbackRate,omitempty"` // Playback rate for animations on page.
}

GetPlaybackRateReturns return values.

func (GetPlaybackRateReturns) MarshalEasyJSON Uses

func (v GetPlaybackRateReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetPlaybackRateReturns) MarshalJSON Uses

func (v GetPlaybackRateReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetPlaybackRateReturns) UnmarshalEasyJSON Uses

func (v *GetPlaybackRateReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetPlaybackRateReturns) UnmarshalJSON Uses

func (v *GetPlaybackRateReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type KeyframeStyle Uses

type KeyframeStyle struct {
    Offset string `json:"offset"` // Keyframe's time offset.
    Easing string `json:"easing"` // AnimationEffect's timing function.
}

KeyframeStyle keyframe Style.

See: https://chromedevtools.github.io/devtools-protocol/tot/Animation#type-KeyframeStyle

func (KeyframeStyle) MarshalEasyJSON Uses

func (v KeyframeStyle) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (KeyframeStyle) MarshalJSON Uses

func (v KeyframeStyle) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*KeyframeStyle) UnmarshalEasyJSON Uses

func (v *KeyframeStyle) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*KeyframeStyle) UnmarshalJSON Uses

func (v *KeyframeStyle) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type KeyframesRule Uses

type KeyframesRule struct {
    Name      string           `json:"name,omitempty"` // CSS keyframed animation's name.
    Keyframes []*KeyframeStyle `json:"keyframes"`      // List of animation keyframes.
}

KeyframesRule keyframes Rule.

See: https://chromedevtools.github.io/devtools-protocol/tot/Animation#type-KeyframesRule

func (KeyframesRule) MarshalEasyJSON Uses

func (v KeyframesRule) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (KeyframesRule) MarshalJSON Uses

func (v KeyframesRule) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*KeyframesRule) UnmarshalEasyJSON Uses

func (v *KeyframesRule) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*KeyframesRule) UnmarshalJSON Uses

func (v *KeyframesRule) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ReleaseAnimationsParams Uses

type ReleaseAnimationsParams struct {
    Animations []string `json:"animations"` // List of animation ids to seek.
}

ReleaseAnimationsParams releases a set of animations to no longer be manipulated.

func ReleaseAnimations Uses

func ReleaseAnimations(animations []string) *ReleaseAnimationsParams

ReleaseAnimations releases a set of animations to no longer be manipulated.

See: https://chromedevtools.github.io/devtools-protocol/tot/Animation#method-releaseAnimations

parameters:

animations - List of animation ids to seek.

func (*ReleaseAnimationsParams) Do Uses

func (p *ReleaseAnimationsParams) Do(ctx context.Context) (err error)

Do executes Animation.releaseAnimations against the provided context.

func (ReleaseAnimationsParams) MarshalEasyJSON Uses

func (v ReleaseAnimationsParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ReleaseAnimationsParams) MarshalJSON Uses

func (v ReleaseAnimationsParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ReleaseAnimationsParams) UnmarshalEasyJSON Uses

func (v *ReleaseAnimationsParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ReleaseAnimationsParams) UnmarshalJSON Uses

func (v *ReleaseAnimationsParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ResolveAnimationParams Uses

type ResolveAnimationParams struct {
    AnimationID string `json:"animationId"` // Animation id.
}

ResolveAnimationParams gets the remote object of the Animation.

func ResolveAnimation Uses

func ResolveAnimation(animationID string) *ResolveAnimationParams

ResolveAnimation gets the remote object of the Animation.

See: https://chromedevtools.github.io/devtools-protocol/tot/Animation#method-resolveAnimation

parameters:

animationID - Animation id.

func (*ResolveAnimationParams) Do Uses

func (p *ResolveAnimationParams) Do(ctx context.Context) (remoteObject *runtime.RemoteObject, err error)

Do executes Animation.resolveAnimation against the provided context.

returns:

remoteObject - Corresponding remote object.

func (ResolveAnimationParams) MarshalEasyJSON Uses

func (v ResolveAnimationParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ResolveAnimationParams) MarshalJSON Uses

func (v ResolveAnimationParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ResolveAnimationParams) UnmarshalEasyJSON Uses

func (v *ResolveAnimationParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ResolveAnimationParams) UnmarshalJSON Uses

func (v *ResolveAnimationParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ResolveAnimationReturns Uses

type ResolveAnimationReturns struct {
    RemoteObject *runtime.RemoteObject `json:"remoteObject,omitempty"` // Corresponding remote object.
}

ResolveAnimationReturns return values.

func (ResolveAnimationReturns) MarshalEasyJSON Uses

func (v ResolveAnimationReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ResolveAnimationReturns) MarshalJSON Uses

func (v ResolveAnimationReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ResolveAnimationReturns) UnmarshalEasyJSON Uses

func (v *ResolveAnimationReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ResolveAnimationReturns) UnmarshalJSON Uses

func (v *ResolveAnimationReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SeekAnimationsParams Uses

type SeekAnimationsParams struct {
    Animations  []string `json:"animations"`  // List of animation ids to seek.
    CurrentTime float64  `json:"currentTime"` // Set the current time of each animation.
}

SeekAnimationsParams seek a set of animations to a particular time within each animation.

func SeekAnimations Uses

func SeekAnimations(animations []string, currentTime float64) *SeekAnimationsParams

SeekAnimations seek a set of animations to a particular time within each animation.

See: https://chromedevtools.github.io/devtools-protocol/tot/Animation#method-seekAnimations

parameters:

animations - List of animation ids to seek.
currentTime - Set the current time of each animation.

func (*SeekAnimationsParams) Do Uses

func (p *SeekAnimationsParams) Do(ctx context.Context) (err error)

Do executes Animation.seekAnimations against the provided context.

func (SeekAnimationsParams) MarshalEasyJSON Uses

func (v SeekAnimationsParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SeekAnimationsParams) MarshalJSON Uses

func (v SeekAnimationsParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SeekAnimationsParams) UnmarshalEasyJSON Uses

func (v *SeekAnimationsParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SeekAnimationsParams) UnmarshalJSON Uses

func (v *SeekAnimationsParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SetPausedParams Uses

type SetPausedParams struct {
    Animations []string `json:"animations"` // Animations to set the pause state of.
    Paused     bool     `json:"paused"`     // Paused state to set to.
}

SetPausedParams sets the paused state of a set of animations.

func SetPaused Uses

func SetPaused(animations []string, paused bool) *SetPausedParams

SetPaused sets the paused state of a set of animations.

See: https://chromedevtools.github.io/devtools-protocol/tot/Animation#method-setPaused

parameters:

animations - Animations to set the pause state of.
paused - Paused state to set to.

func (*SetPausedParams) Do Uses

func (p *SetPausedParams) Do(ctx context.Context) (err error)

Do executes Animation.setPaused against the provided context.

func (SetPausedParams) MarshalEasyJSON Uses

func (v SetPausedParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetPausedParams) MarshalJSON Uses

func (v SetPausedParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetPausedParams) UnmarshalEasyJSON Uses

func (v *SetPausedParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetPausedParams) UnmarshalJSON Uses

func (v *SetPausedParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SetPlaybackRateParams Uses

type SetPlaybackRateParams struct {
    PlaybackRate float64 `json:"playbackRate"` // Playback rate for animations on page
}

SetPlaybackRateParams sets the playback rate of the document timeline.

func SetPlaybackRate Uses

func SetPlaybackRate(playbackRate float64) *SetPlaybackRateParams

SetPlaybackRate sets the playback rate of the document timeline.

See: https://chromedevtools.github.io/devtools-protocol/tot/Animation#method-setPlaybackRate

parameters:

playbackRate - Playback rate for animations on page

func (*SetPlaybackRateParams) Do Uses

func (p *SetPlaybackRateParams) Do(ctx context.Context) (err error)

Do executes Animation.setPlaybackRate against the provided context.

func (SetPlaybackRateParams) MarshalEasyJSON Uses

func (v SetPlaybackRateParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetPlaybackRateParams) MarshalJSON Uses

func (v SetPlaybackRateParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetPlaybackRateParams) UnmarshalEasyJSON Uses

func (v *SetPlaybackRateParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetPlaybackRateParams) UnmarshalJSON Uses

func (v *SetPlaybackRateParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SetTimingParams Uses

type SetTimingParams struct {
    AnimationID string  `json:"animationId"` // Animation id.
    Duration    float64 `json:"duration"`    // Duration of the animation.
    Delay       float64 `json:"delay"`       // Delay of the animation.
}

SetTimingParams sets the timing of an animation node.

func SetTiming Uses

func SetTiming(animationID string, duration float64, delay float64) *SetTimingParams

SetTiming sets the timing of an animation node.

See: https://chromedevtools.github.io/devtools-protocol/tot/Animation#method-setTiming

parameters:

animationID - Animation id.
duration - Duration of the animation.
delay - Delay of the animation.

func (*SetTimingParams) Do Uses

func (p *SetTimingParams) Do(ctx context.Context) (err error)

Do executes Animation.setTiming against the provided context.

func (SetTimingParams) MarshalEasyJSON Uses

func (v SetTimingParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetTimingParams) MarshalJSON Uses

func (v SetTimingParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetTimingParams) UnmarshalEasyJSON Uses

func (v *SetTimingParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetTimingParams) UnmarshalJSON Uses

func (v *SetTimingParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Type Uses

type Type string

Type animation type of Animation.

See: https://chromedevtools.github.io/devtools-protocol/tot/Animation#type-Animation

const (
    TypeCSSTransition Type = "CSSTransition"
    TypeCSSAnimation  Type = "CSSAnimation"
    TypeWebAnimation  Type = "WebAnimation"
)

Type values.

func (Type) MarshalEasyJSON Uses

func (t Type) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (Type) MarshalJSON Uses

func (t Type) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (Type) String Uses

func (t Type) String() string

String returns the Type as string value.

func (*Type) UnmarshalEasyJSON Uses

func (t *Type) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*Type) UnmarshalJSON Uses

func (t *Type) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

Package animation imports 8 packages (graph) and is imported by 3 packages. Updated 2021-01-07. Refresh now. Tools for package owners.