Documentation ¶
Overview ¶
Package animation provides the Chrome Debugging Protocol commands, types, and events for the Animation domain.
Generated by the chromedp-gen command.
Index ¶
- Variables
- type Animation
- type DisableParams
- func (p *DisableParams) Do(ctxt context.Context, h cdp.Handler) (err error)
- func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v DisableParams) MarshalJSON() ([]byte, error)
- func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *DisableParams) UnmarshalJSON(data []byte) error
- type Effect
- type EnableParams
- type EventAnimationCanceled
- type EventAnimationCreated
- type EventAnimationStarted
- type GetCurrentTimeParams
- func (p *GetCurrentTimeParams) Do(ctxt context.Context, h cdp.Handler) (currentTime float64, err error)
- func (v GetCurrentTimeParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v GetCurrentTimeParams) MarshalJSON() ([]byte, error)
- func (v *GetCurrentTimeParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *GetCurrentTimeParams) UnmarshalJSON(data []byte) error
- type GetCurrentTimeReturns
- type GetPlaybackRateParams
- func (p *GetPlaybackRateParams) Do(ctxt context.Context, h cdp.Handler) (playbackRate float64, err error)
- func (v GetPlaybackRateParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v GetPlaybackRateParams) MarshalJSON() ([]byte, error)
- func (v *GetPlaybackRateParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *GetPlaybackRateParams) UnmarshalJSON(data []byte) error
- type GetPlaybackRateReturns
- type KeyframeStyle
- type KeyframesRule
- type ReleaseAnimationsParams
- func (p *ReleaseAnimationsParams) Do(ctxt context.Context, h cdp.Handler) (err error)
- func (v ReleaseAnimationsParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v ReleaseAnimationsParams) MarshalJSON() ([]byte, error)
- func (v *ReleaseAnimationsParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *ReleaseAnimationsParams) UnmarshalJSON(data []byte) error
- type ResolveAnimationParams
- func (p *ResolveAnimationParams) Do(ctxt context.Context, h cdp.Handler) (remoteObject *runtime.RemoteObject, err error)
- func (v ResolveAnimationParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v ResolveAnimationParams) MarshalJSON() ([]byte, error)
- func (v *ResolveAnimationParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *ResolveAnimationParams) UnmarshalJSON(data []byte) error
- type ResolveAnimationReturns
- type SeekAnimationsParams
- func (p *SeekAnimationsParams) Do(ctxt context.Context, h cdp.Handler) (err error)
- func (v SeekAnimationsParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v SeekAnimationsParams) MarshalJSON() ([]byte, error)
- func (v *SeekAnimationsParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *SeekAnimationsParams) UnmarshalJSON(data []byte) error
- type SetPausedParams
- func (p *SetPausedParams) Do(ctxt context.Context, h cdp.Handler) (err error)
- func (v SetPausedParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v SetPausedParams) MarshalJSON() ([]byte, error)
- func (v *SetPausedParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *SetPausedParams) UnmarshalJSON(data []byte) error
- type SetPlaybackRateParams
- func (p *SetPlaybackRateParams) Do(ctxt context.Context, h cdp.Handler) (err error)
- func (v SetPlaybackRateParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v SetPlaybackRateParams) MarshalJSON() ([]byte, error)
- func (v *SetPlaybackRateParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *SetPlaybackRateParams) UnmarshalJSON(data []byte) error
- type SetTimingParams
- func (p *SetTimingParams) Do(ctxt context.Context, h cdp.Handler) (err error)
- func (v SetTimingParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v SetTimingParams) MarshalJSON() ([]byte, error)
- func (v *SetTimingParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *SetTimingParams) UnmarshalJSON(data []byte) error
- type Type
Constants ¶
This section is empty.
Variables ¶
var EventTypes = []cdp.MethodType{ cdp.EventAnimationAnimationCreated, cdp.EventAnimationAnimationStarted, cdp.EventAnimationAnimationCanceled, }
EventTypes all event types in the domain.
Functions ¶
This section is empty.
Types ¶
type Animation ¶
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. Source *Effect `json:"source"` // Animation's source animation node. Type Type `json:"type"` // Animation type of Animation. CSSID string `json:"cssId,omitempty"` // A unique ID for Animation representing the sources that triggered this CSS animation/transition. }
Animation animation instance.
func (Animation) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Animation) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Animation) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Animation) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type DisableParams ¶
type DisableParams struct{}
DisableParams disables animation domain notifications.
func (*DisableParams) Do ¶
Do executes Animation.disable against the provided context and target handler.
func (DisableParams) MarshalEasyJSON ¶
func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (DisableParams) MarshalJSON ¶
func (v DisableParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*DisableParams) UnmarshalEasyJSON ¶
func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*DisableParams) UnmarshalJSON ¶
func (v *DisableParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type Effect ¶
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"` // AnimationEffect's target node. KeyframesRule *KeyframesRule `json:"keyframesRule,omitempty"` // AnimationEffect's keyframes. Easing string `json:"easing"` // AnimationEffect's timing function. }
Effect animationEffect instance.
func (Effect) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Effect) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Effect) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Effect) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type EnableParams ¶
type EnableParams struct{}
EnableParams enables animation domain notifications.
func (*EnableParams) Do ¶
Do executes Animation.enable against the provided context and target handler.
func (EnableParams) MarshalEasyJSON ¶
func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EnableParams) MarshalJSON ¶
func (v EnableParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EnableParams) UnmarshalEasyJSON ¶
func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EnableParams) UnmarshalJSON ¶
func (v *EnableParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventAnimationCanceled ¶
type EventAnimationCanceled struct {
ID string `json:"id"` // Id of the animation that was cancelled.
}
EventAnimationCanceled event for when an animation has been cancelled.
func (EventAnimationCanceled) MarshalEasyJSON ¶
func (v EventAnimationCanceled) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventAnimationCanceled) MarshalJSON ¶
func (v EventAnimationCanceled) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventAnimationCanceled) UnmarshalEasyJSON ¶
func (v *EventAnimationCanceled) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventAnimationCanceled) UnmarshalJSON ¶
func (v *EventAnimationCanceled) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventAnimationCreated ¶
type EventAnimationCreated struct {
ID string `json:"id"` // Id of the animation that was created.
}
EventAnimationCreated event for each animation that has been created.
func (EventAnimationCreated) MarshalEasyJSON ¶
func (v EventAnimationCreated) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventAnimationCreated) MarshalJSON ¶
func (v EventAnimationCreated) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventAnimationCreated) UnmarshalEasyJSON ¶
func (v *EventAnimationCreated) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventAnimationCreated) UnmarshalJSON ¶
func (v *EventAnimationCreated) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventAnimationStarted ¶
type EventAnimationStarted struct {
Animation *Animation `json:"animation"` // Animation that was started.
}
EventAnimationStarted event for animation that has been started.
func (EventAnimationStarted) MarshalEasyJSON ¶
func (v EventAnimationStarted) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventAnimationStarted) MarshalJSON ¶
func (v EventAnimationStarted) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventAnimationStarted) UnmarshalEasyJSON ¶
func (v *EventAnimationStarted) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventAnimationStarted) UnmarshalJSON ¶
func (v *EventAnimationStarted) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetCurrentTimeParams ¶
type GetCurrentTimeParams struct {
ID string `json:"id"` // Id of animation.
}
GetCurrentTimeParams returns the current time of the an animation.
func GetCurrentTime ¶
func GetCurrentTime(id string) *GetCurrentTimeParams
GetCurrentTime returns the current time of the an animation.
parameters:
id - Id of animation.
func (*GetCurrentTimeParams) Do ¶
func (p *GetCurrentTimeParams) Do(ctxt context.Context, h cdp.Handler) (currentTime float64, err error)
Do executes Animation.getCurrentTime against the provided context and target handler.
returns:
currentTime - Current time of the page.
func (GetCurrentTimeParams) MarshalEasyJSON ¶
func (v GetCurrentTimeParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetCurrentTimeParams) MarshalJSON ¶
func (v GetCurrentTimeParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetCurrentTimeParams) UnmarshalEasyJSON ¶
func (v *GetCurrentTimeParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetCurrentTimeParams) UnmarshalJSON ¶
func (v *GetCurrentTimeParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetCurrentTimeReturns ¶
type GetCurrentTimeReturns struct {
CurrentTime float64 `json:"currentTime,omitempty"` // Current time of the page.
}
GetCurrentTimeReturns return values.
func (GetCurrentTimeReturns) MarshalEasyJSON ¶
func (v GetCurrentTimeReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetCurrentTimeReturns) MarshalJSON ¶
func (v GetCurrentTimeReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetCurrentTimeReturns) UnmarshalEasyJSON ¶
func (v *GetCurrentTimeReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetCurrentTimeReturns) UnmarshalJSON ¶
func (v *GetCurrentTimeReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetPlaybackRateParams ¶
type GetPlaybackRateParams struct{}
GetPlaybackRateParams gets the playback rate of the document timeline.
func GetPlaybackRate ¶
func GetPlaybackRate() *GetPlaybackRateParams
GetPlaybackRate gets the playback rate of the document timeline.
func (*GetPlaybackRateParams) Do ¶
func (p *GetPlaybackRateParams) Do(ctxt context.Context, h cdp.Handler) (playbackRate float64, err error)
Do executes Animation.getPlaybackRate against the provided context and target handler.
returns:
playbackRate - Playback rate for animations on page.
func (GetPlaybackRateParams) MarshalEasyJSON ¶
func (v GetPlaybackRateParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetPlaybackRateParams) MarshalJSON ¶
func (v GetPlaybackRateParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetPlaybackRateParams) UnmarshalEasyJSON ¶
func (v *GetPlaybackRateParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetPlaybackRateParams) UnmarshalJSON ¶
func (v *GetPlaybackRateParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetPlaybackRateReturns ¶
type GetPlaybackRateReturns struct {
PlaybackRate float64 `json:"playbackRate,omitempty"` // Playback rate for animations on page.
}
GetPlaybackRateReturns return values.
func (GetPlaybackRateReturns) MarshalEasyJSON ¶
func (v GetPlaybackRateReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetPlaybackRateReturns) MarshalJSON ¶
func (v GetPlaybackRateReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetPlaybackRateReturns) UnmarshalEasyJSON ¶
func (v *GetPlaybackRateReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetPlaybackRateReturns) UnmarshalJSON ¶
func (v *GetPlaybackRateReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type KeyframeStyle ¶
type KeyframeStyle struct { Offset string `json:"offset"` // Keyframe's time offset. Easing string `json:"easing"` // AnimationEffect's timing function. }
KeyframeStyle keyframe Style.
func (KeyframeStyle) MarshalEasyJSON ¶
func (v KeyframeStyle) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (KeyframeStyle) MarshalJSON ¶
func (v KeyframeStyle) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*KeyframeStyle) UnmarshalEasyJSON ¶
func (v *KeyframeStyle) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*KeyframeStyle) UnmarshalJSON ¶
func (v *KeyframeStyle) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type KeyframesRule ¶
type KeyframesRule struct { Name string `json:"name,omitempty"` // CSS keyframed animation's name. Keyframes []*KeyframeStyle `json:"keyframes"` // List of animation keyframes. }
KeyframesRule keyframes Rule.
func (KeyframesRule) MarshalEasyJSON ¶
func (v KeyframesRule) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (KeyframesRule) MarshalJSON ¶
func (v KeyframesRule) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*KeyframesRule) UnmarshalEasyJSON ¶
func (v *KeyframesRule) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*KeyframesRule) UnmarshalJSON ¶
func (v *KeyframesRule) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type ReleaseAnimationsParams ¶
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 ¶
func ReleaseAnimations(animations []string) *ReleaseAnimationsParams
ReleaseAnimations releases a set of animations to no longer be manipulated.
parameters:
animations - List of animation ids to seek.
func (*ReleaseAnimationsParams) Do ¶
Do executes Animation.releaseAnimations against the provided context and target handler.
func (ReleaseAnimationsParams) MarshalEasyJSON ¶
func (v ReleaseAnimationsParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ReleaseAnimationsParams) MarshalJSON ¶
func (v ReleaseAnimationsParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ReleaseAnimationsParams) UnmarshalEasyJSON ¶
func (v *ReleaseAnimationsParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ReleaseAnimationsParams) UnmarshalJSON ¶
func (v *ReleaseAnimationsParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type ResolveAnimationParams ¶
type ResolveAnimationParams struct {
AnimationID string `json:"animationId"` // Animation id.
}
ResolveAnimationParams gets the remote object of the Animation.
func ResolveAnimation ¶
func ResolveAnimation(animationID string) *ResolveAnimationParams
ResolveAnimation gets the remote object of the Animation.
parameters:
animationID - Animation id.
func (*ResolveAnimationParams) Do ¶
func (p *ResolveAnimationParams) Do(ctxt context.Context, h cdp.Handler) (remoteObject *runtime.RemoteObject, err error)
Do executes Animation.resolveAnimation against the provided context and target handler.
returns:
remoteObject - Corresponding remote object.
func (ResolveAnimationParams) MarshalEasyJSON ¶
func (v ResolveAnimationParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ResolveAnimationParams) MarshalJSON ¶
func (v ResolveAnimationParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ResolveAnimationParams) UnmarshalEasyJSON ¶
func (v *ResolveAnimationParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ResolveAnimationParams) UnmarshalJSON ¶
func (v *ResolveAnimationParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type ResolveAnimationReturns ¶
type ResolveAnimationReturns struct {
RemoteObject *runtime.RemoteObject `json:"remoteObject,omitempty"` // Corresponding remote object.
}
ResolveAnimationReturns return values.
func (ResolveAnimationReturns) MarshalEasyJSON ¶
func (v ResolveAnimationReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ResolveAnimationReturns) MarshalJSON ¶
func (v ResolveAnimationReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ResolveAnimationReturns) UnmarshalEasyJSON ¶
func (v *ResolveAnimationReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ResolveAnimationReturns) UnmarshalJSON ¶
func (v *ResolveAnimationReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type SeekAnimationsParams ¶
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 ¶
func SeekAnimations(animations []string, currentTime float64) *SeekAnimationsParams
SeekAnimations seek a set of animations to a particular time within each animation.
parameters:
animations - List of animation ids to seek. currentTime - Set the current time of each animation.
func (*SeekAnimationsParams) Do ¶
Do executes Animation.seekAnimations against the provided context and target handler.
func (SeekAnimationsParams) MarshalEasyJSON ¶
func (v SeekAnimationsParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SeekAnimationsParams) MarshalJSON ¶
func (v SeekAnimationsParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SeekAnimationsParams) UnmarshalEasyJSON ¶
func (v *SeekAnimationsParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SeekAnimationsParams) UnmarshalJSON ¶
func (v *SeekAnimationsParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type SetPausedParams ¶
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 ¶
func SetPaused(animations []string, paused bool) *SetPausedParams
SetPaused sets the paused state of a set of animations.
parameters:
animations - Animations to set the pause state of. paused - Paused state to set to.
func (*SetPausedParams) Do ¶
Do executes Animation.setPaused against the provided context and target handler.
func (SetPausedParams) MarshalEasyJSON ¶
func (v SetPausedParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SetPausedParams) MarshalJSON ¶
func (v SetPausedParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SetPausedParams) UnmarshalEasyJSON ¶
func (v *SetPausedParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SetPausedParams) UnmarshalJSON ¶
func (v *SetPausedParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type SetPlaybackRateParams ¶
type SetPlaybackRateParams struct {
PlaybackRate float64 `json:"playbackRate"` // Playback rate for animations on page
}
SetPlaybackRateParams sets the playback rate of the document timeline.
func SetPlaybackRate ¶
func SetPlaybackRate(playbackRate float64) *SetPlaybackRateParams
SetPlaybackRate sets the playback rate of the document timeline.
parameters:
playbackRate - Playback rate for animations on page
func (*SetPlaybackRateParams) Do ¶
Do executes Animation.setPlaybackRate against the provided context and target handler.
func (SetPlaybackRateParams) MarshalEasyJSON ¶
func (v SetPlaybackRateParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SetPlaybackRateParams) MarshalJSON ¶
func (v SetPlaybackRateParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SetPlaybackRateParams) UnmarshalEasyJSON ¶
func (v *SetPlaybackRateParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SetPlaybackRateParams) UnmarshalJSON ¶
func (v *SetPlaybackRateParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type SetTimingParams ¶
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 ¶
func SetTiming(animationID string, duration float64, delay float64) *SetTimingParams
SetTiming sets the timing of an animation node.
parameters:
animationID - Animation id. duration - Duration of the animation. delay - Delay of the animation.
func (*SetTimingParams) Do ¶
Do executes Animation.setTiming against the provided context and target handler.
func (SetTimingParams) MarshalEasyJSON ¶
func (v SetTimingParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SetTimingParams) MarshalJSON ¶
func (v SetTimingParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SetTimingParams) UnmarshalEasyJSON ¶
func (v *SetTimingParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SetTimingParams) UnmarshalJSON ¶
func (v *SetTimingParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type Type ¶
type Type string
Type animation type of Animation.
const ( TypeCSSTransition Type = "CSSTransition" TypeCSSAnimation Type = "CSSAnimation" TypeWebAnimation Type = "WebAnimation" )
Type values.
func (Type) MarshalEasyJSON ¶
MarshalEasyJSON satisfies easyjson.Marshaler.
func (Type) MarshalJSON ¶
MarshalJSON satisfies json.Marshaler.
func (*Type) UnmarshalEasyJSON ¶
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func (*Type) UnmarshalJSON ¶
UnmarshalJSON satisfies json.Unmarshaler.