Enum Class TransitionTimingFunction

java.lang.Object
java.lang.Enum<TransitionTimingFunction>
com.oorian.css.TransitionTimingFunction
All Implemented Interfaces:
Serializable, Comparable<TransitionTimingFunction>, Constable

public enum TransitionTimingFunction extends Enum<TransitionTimingFunction>
CSS transition-timing-function property values for animation easing.

The transition-timing-function property specifies the speed curve of the transition effect. It defines how intermediate values are calculated during the transition.

Timing Functions:

  • linear: Same speed from start to end
  • ease: Slow start, fast middle, slow end (default)
  • ease-in: Slow start
  • ease-out: Slow end
  • ease-in-out: Slow start and end
  • step-start: Jump immediately to final value
  • step-end: Stay at initial value until end

Usage:


 element.setTransitionTimingFunction(TransitionTimingFunction.EASE_IN_OUT);
 button.setTransitionTimingFunction(TransitionTimingFunction.LINEAR);
 
Since:
2012
Version:
1.0
Author:
Marvin P. Warble Jr.
See Also:
  • Enum Constant Details

  • Method Details

    • values

      public static TransitionTimingFunction[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static TransitionTimingFunction valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public String getValue()
      Returns the CSS value string.
      Returns:
      the CSS value
    • toString

      public String toString()
      Returns the CSS value string.
      Overrides:
      toString in class Enum<TransitionTimingFunction>
      Returns:
      the CSS value