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

Disables animation domain notifications.

Enables animation domain notifications.

Link to this function

get_current_time(id)

Returns the current time of the an animation.

Parameters:

  • id:string: Id of animation.
Link to this function

get_playback_rate()

Gets the playback rate of the document timeline.

Link to this function

release_animations(animations)

Releases a set of animations to no longer be manipulated.

Parameters:

  • animations:array: List of animation ids to seek.
Link to this function

resolve_animation(animation_id)

Gets the remote object of the Animation.

Parameters:

  • animationId:string: Animation id.
Link to this function

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.
Link to this function

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.
Link to this function

set_playback_rate(playback_rate)

Sets the playback rate of the document timeline.

Parameters:

  • playbackRate:number: Playback rate for animations on page
Link to this function

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.