CDPotion.Domain.Animation (cdpotion v0.1.0)
Summary
Functions
Disables animation domain notifications.
Enables animation domain notifications.
Returns the current time of the an animation.
Gets the playback rate of the document timeline.
Releases a set of animations to no longer be manipulated.
Gets the remote object of the Animation.
Seek a set of animations to a particular time within each animation.
Sets the paused state of a set of animations.
Sets the playback rate of the document timeline.
Sets the timing of an animation node.
Functions
disable()
Disables animation domain notifications.
enable()
Enables animation domain notifications.
get_current_time(id)
Returns the current time of the an animation.
Parameters:
id:string
: Id of animation.
get_playback_rate()
Gets the playback rate of the document timeline.
release_animations(animations)
Releases a set of animations to no longer be manipulated.
Parameters:
animations:array
: List of animation ids to seek.
resolve_animation(animation_id)
Gets the remote object of the Animation.
Parameters:
animationId:string
: Animation id.
seek_animations(animations, current_time)
Seek a set of animations to a particular time within each animation.
Parameters:
animations:array
: List of animation ids to seek.currentTime:number
: Set the current time of each animation.
set_paused(animations, paused)
Sets the paused state of a set of animations.
Parameters:
animations:array
: Animations to set the pause state of.paused:boolean
: Paused state to set to.
set_playback_rate(playback_rate)
Sets the playback rate of the document timeline.
Parameters:
playbackRate:number
: Playback rate for animations on page
set_timing(animation_id, duration, delay)
Sets the timing of an animation node.
Parameters:
animationId:string
: Animation id.duration:number
: Duration of the animation.delay:number
: Delay of the animation.