Interface AnimationIntf<T extends AnimationIntf<T>>

All Known Implementing Classes:
ClassRule, CssRule, CssStyle, ElementRule, IdRule, KeyFrameRule, TagRule

public interface AnimationIntf<T extends AnimationIntf<T>>
CSS animation properties interface for defining keyframe animations.

AnimationIntf provides methods for configuring CSS animations on HTML elements. Animations allow elements to gradually change from one style to another over time using keyframes.

Key Features:

  • Animation timing (duration, delay)
  • Playback control (direction, play state)
  • Iteration settings (count, fill mode)
  • Timing functions (easing curves)
Since:
2016
Version:
1.0
Author:
Marvin P. Warble Jr.
See Also:
  • Method Details

    • setKeyFrames

      T setKeyFrames(String attrValue)
      Sets CSS keyframes definition.
      Parameters:
      attrValue - the keyframes definition string
      Returns:
      this for method chaining
    • setAnimation

      T setAnimation(String attrValue)
      Sets the animation shorthand property.
      Parameters:
      attrValue - the animation shorthand value
      Returns:
      this for method chaining
    • setAnimationDelay

      T setAnimationDelay(String attrValue)
      Sets the animation delay.
      Parameters:
      attrValue - the delay value with units (e.g., "2s", "500ms")
      Returns:
      this for method chaining
    • setAnimationDelay

      T setAnimationDelay(int delayInSecs)
      Sets the animation delay in seconds.
      Parameters:
      delayInSecs - the delay in seconds
      Returns:
      this for method chaining
    • setAnimationDelay

      T setAnimationDelay(long delayInMsecs)
      Sets the animation delay in milliseconds.
      Parameters:
      delayInMsecs - the delay in milliseconds
      Returns:
      this for method chaining
    • setAnimationDirection

      T setAnimationDirection(String attrValue)
      Sets the animation direction.
      Parameters:
      attrValue - the direction value string
      Returns:
      this for method chaining
    • setAnimationDirection

      T setAnimationDirection(AnimationDirection attrValue)
      Sets the animation direction.
      Parameters:
      attrValue - the AnimationDirection enum value
      Returns:
      this for method chaining
    • setAnimationDuration

      T setAnimationDuration(String attrValue)
      Sets the animation duration.
      Parameters:
      attrValue - the duration value with units (e.g., "2s", "500ms")
      Returns:
      this for method chaining
    • setAnimationDuration

      T setAnimationDuration(int secs)
      Sets the animation duration in seconds.
      Parameters:
      secs - the duration in seconds
      Returns:
      this for method chaining
    • setAnimationDuration

      T setAnimationDuration(long msecs)
      Sets the animation duration in milliseconds.
      Parameters:
      msecs - the duration in milliseconds
      Returns:
      this for method chaining
    • setAnimationFillMode

      T setAnimationFillMode(String attrValue)
      Sets the animation fill mode.
      Parameters:
      attrValue - the fill mode value string
      Returns:
      this for method chaining
    • setAnimationFillMode

      T setAnimationFillMode(AnimationFillMode attrValue)
      Sets the animation fill mode.
      Parameters:
      attrValue - the AnimationFillMode enum value
      Returns:
      this for method chaining
    • setAnimationIterationCount

      T setAnimationIterationCount(String attrValue)
      Sets the animation iteration count.
      Parameters:
      attrValue - the iteration count value string
      Returns:
      this for method chaining
    • setAnimationIterationCount

      T setAnimationIterationCount(int count)
      Sets the animation iteration count.
      Parameters:
      count - the number of times to play the animation
      Returns:
      this for method chaining
    • setAnimationIterationCount

      T setAnimationIterationCount(AnimationIterationCount attrValue)
      Sets the animation iteration count.
      Parameters:
      attrValue - the AnimationIterationCount enum value
      Returns:
      this for method chaining
    • setAnimationName

      T setAnimationName(String attrValue)
      Sets the animation name (keyframes reference).
      Parameters:
      attrValue - the name of the keyframes to use
      Returns:
      this for method chaining
    • setAnimationPlayState

      T setAnimationPlayState(String attrValue)
      Sets the animation play state.
      Parameters:
      attrValue - the play state value string
      Returns:
      this for method chaining
    • setAnimationPlayState

      T setAnimationPlayState(AnimationPlayState attrValue)
      Sets the animation play state.
      Parameters:
      attrValue - the AnimationPlayState enum value
      Returns:
      this for method chaining
    • setAnimationTimingFunction

      T setAnimationTimingFunction(String attrValue)
      Sets the animation timing function.
      Parameters:
      attrValue - the timing function value string
      Returns:
      this for method chaining
    • setAnimationTimingFunction

      T setAnimationTimingFunction(AnimationTimingFunction attrValue)
      Sets the animation timing function.
      Parameters:
      attrValue - the AnimationTimingFunction enum value
      Returns:
      this for method chaining
    • setAnimationTimingFunction

      T setAnimationTimingFunction(int intervals, boolean start)
      Sets a steps() timing function.
      Parameters:
      intervals - the number of intervals
      start - true for step-start, false for step-end
      Returns:
      this for method chaining
    • setAnimationTimingFunction

      T setAnimationTimingFunction(float n1, float n2, float n3, float n4)
      Sets a cubic-bezier() timing function.
      Parameters:
      n1 - the first control point x-coordinate
      n2 - the first control point y-coordinate
      n3 - the second control point x-coordinate
      n4 - the second control point y-coordinate
      Returns:
      this for method chaining