Interface ElementTimeManipulation


public interface ElementTimeManipulation
This interface support use-cases commonly associated with animation. "accelerate" and "decelerate" are float values in the timing draft and percentage values even in this draft if both of them represent a percentage.
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    The percentage value of the simple acceleration of time for the element.
    boolean
    The autoReverse attribute controls the "play forwards then backwards" functionality.
    float
    The percentage value of the simple decelerate of time for the element.
    float
    Defines the playback speed of element time.
    void
    setAccelerate(float accelerate)
    setAccelerate.
    void
    setAutoReverse(boolean autoReverse)
    setAutoReverse.
    void
    setDecelerate(float decelerate)
    setDecelerate.
    void
    setSpeed(float speed)
    setSpeed.
  • Method Details

    • getSpeed

      float getSpeed()
      Defines the playback speed of element time. The value is specified as a multiple of normal (parent time container) play speed. Legal values are signed floating point values. Zero values are not allowed. The default is 1.0 (no modification of speed).
      Returns:
      a float.
      Throws:
      DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
    • setSpeed

      void setSpeed(float speed) throws DOMException

      setSpeed.

      Parameters:
      speed - a float.
      Throws:
      DOMException - if any.
    • getAccelerate

      float getAccelerate()
      The percentage value of the simple acceleration of time for the element. Allowed values are from 0 to 100 . Default value is 0 (no acceleration).
      The sum of the values for accelerate and decelerate must not exceed 100. If it does, the deceleration value will be reduced to make the sum legal.
      Returns:
      a float.
      Throws:
      DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
    • setAccelerate

      void setAccelerate(float accelerate) throws DOMException

      setAccelerate.

      Parameters:
      accelerate - a float.
      Throws:
      DOMException - if any.
    • getDecelerate

      float getDecelerate()
      The percentage value of the simple decelerate of time for the element. Allowed values are from 0 to 100 . Default value is 0 (no deceleration).
      The sum of the values for accelerate and decelerate must not exceed 100. If it does, the deceleration value will be reduced to make the sum legal.
      Returns:
      a float.
      Throws:
      DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
    • setDecelerate

      void setDecelerate(float decelerate) throws DOMException

      setDecelerate.

      Parameters:
      decelerate - a float.
      Throws:
      DOMException - if any.
    • getAutoReverse

      boolean getAutoReverse()
      The autoReverse attribute controls the "play forwards then backwards" functionality. Default value is false .
      Returns:
      a boolean.
      Throws:
      DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
    • setAutoReverse

      void setAutoReverse(boolean autoReverse) throws DOMException

      setAutoReverse.

      Parameters:
      autoReverse - a boolean.
      Throws:
      DOMException - if any.