Interface Animation


public interface Animation
  • Method Details

    • disable

      void disable()
      Disables animation domain notifications.
    • enable

      void enable()
      Enables animation domain notifications.
    • getCurrentTime

      Double getCurrentTime(String id)
      Returns the current time of the an animation.
      Parameters:
      id - Id of animation.
      Returns:
      Current time of the page.
    • getPlaybackRate

      Double getPlaybackRate()
      Gets the playback rate of the document timeline.
      Returns:
      Playback rate for animations on page.
    • releaseAnimations

      void releaseAnimations(List<String> animations)
      Releases a set of animations to no longer be manipulated.
      Parameters:
      animations - List of animation ids to seek.
    • resolveAnimation

      RemoteObject resolveAnimation(String animationId)
      Gets the remote object of the Animation.
      Parameters:
      animationId - Animation id.
      Returns:
      Corresponding remote object.
    • seekAnimations

      void seekAnimations(List<String> animations, Double currentTime)
      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.
    • setPaused

      void setPaused(List<String> animations, Boolean paused)
      Sets the paused state of a set of animations.
      Parameters:
      animations - Animations to set the pause state of.
      paused - Paused state to set to.
    • setPlaybackRate

      void setPlaybackRate(Double playbackRate)
      Sets the playback rate of the document timeline.
      Parameters:
      playbackRate - Playback rate for animations on page
    • setTiming

      void setTiming(String animationId, Double duration, Double delay)
      Sets the timing of an animation node.
      Parameters:
      animationId - Animation id.
      duration - Duration of the animation.
      delay - Delay of the animation.