Package com.oorian.css
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 Summary
Modifier and TypeMethodDescriptionsetAnimation(String attrValue) Sets the animation shorthand property.setAnimationDelay(int delayInSecs) Sets the animation delay in seconds.setAnimationDelay(long delayInMsecs) Sets the animation delay in milliseconds.setAnimationDelay(String attrValue) Sets the animation delay.setAnimationDirection(AnimationDirection attrValue) Sets the animation direction.setAnimationDirection(String attrValue) Sets the animation direction.setAnimationDuration(int secs) Sets the animation duration in seconds.setAnimationDuration(long msecs) Sets the animation duration in milliseconds.setAnimationDuration(String attrValue) Sets the animation duration.setAnimationFillMode(AnimationFillMode attrValue) Sets the animation fill mode.setAnimationFillMode(String attrValue) Sets the animation fill mode.setAnimationIterationCount(int count) Sets the animation iteration count.Sets the animation iteration count.setAnimationIterationCount(String attrValue) Sets the animation iteration count.setAnimationName(String attrValue) Sets the animation name (keyframes reference).setAnimationPlayState(AnimationPlayState attrValue) Sets the animation play state.setAnimationPlayState(String attrValue) Sets the animation play state.setAnimationTimingFunction(float n1, float n2, float n3, float n4) Sets a cubic-bezier() timing function.setAnimationTimingFunction(int intervals, boolean start) Sets a steps() timing function.Sets the animation timing function.setAnimationTimingFunction(String attrValue) Sets the animation timing function.setKeyFrames(String attrValue) Sets CSS keyframes definition.
-
Method Details
-
setKeyFrames
Sets CSS keyframes definition.- Parameters:
attrValue- the keyframes definition string- Returns:
- this for method chaining
-
setAnimation
Sets the animation shorthand property.- Parameters:
attrValue- the animation shorthand value- Returns:
- this for method chaining
-
setAnimationDelay
Sets the animation delay.- Parameters:
attrValue- the delay value with units (e.g., "2s", "500ms")- Returns:
- this for method chaining
-
setAnimationDelay
Sets the animation delay in seconds.- Parameters:
delayInSecs- the delay in seconds- Returns:
- this for method chaining
-
setAnimationDelay
Sets the animation delay in milliseconds.- Parameters:
delayInMsecs- the delay in milliseconds- Returns:
- this for method chaining
-
setAnimationDirection
Sets the animation direction.- Parameters:
attrValue- the direction value string- Returns:
- this for method chaining
-
setAnimationDirection
Sets the animation direction.- Parameters:
attrValue- the AnimationDirection enum value- Returns:
- this for method chaining
-
setAnimationDuration
Sets the animation duration.- Parameters:
attrValue- the duration value with units (e.g., "2s", "500ms")- Returns:
- this for method chaining
-
setAnimationDuration
Sets the animation duration in seconds.- Parameters:
secs- the duration in seconds- Returns:
- this for method chaining
-
setAnimationDuration
Sets the animation duration in milliseconds.- Parameters:
msecs- the duration in milliseconds- Returns:
- this for method chaining
-
setAnimationFillMode
Sets the animation fill mode.- Parameters:
attrValue- the fill mode value string- Returns:
- this for method chaining
-
setAnimationFillMode
Sets the animation fill mode.- Parameters:
attrValue- the AnimationFillMode enum value- Returns:
- this for method chaining
-
setAnimationIterationCount
Sets the animation iteration count.- Parameters:
attrValue- the iteration count value string- Returns:
- this for method chaining
-
setAnimationIterationCount
Sets the animation iteration count.- Parameters:
count- the number of times to play the animation- Returns:
- this for method chaining
-
setAnimationIterationCount
Sets the animation iteration count.- Parameters:
attrValue- the AnimationIterationCount enum value- Returns:
- this for method chaining
-
setAnimationName
Sets the animation name (keyframes reference).- Parameters:
attrValue- the name of the keyframes to use- Returns:
- this for method chaining
-
setAnimationPlayState
Sets the animation play state.- Parameters:
attrValue- the play state value string- Returns:
- this for method chaining
-
setAnimationPlayState
Sets the animation play state.- Parameters:
attrValue- the AnimationPlayState enum value- Returns:
- this for method chaining
-
setAnimationTimingFunction
Sets the animation timing function.- Parameters:
attrValue- the timing function value string- Returns:
- this for method chaining
-
setAnimationTimingFunction
Sets the animation timing function.- Parameters:
attrValue- the AnimationTimingFunction enum value- Returns:
- this for method chaining
-
setAnimationTimingFunction
Sets a steps() timing function.- Parameters:
intervals- the number of intervalsstart- true for step-start, false for step-end- Returns:
- this for method chaining
-
setAnimationTimingFunction
Sets a cubic-bezier() timing function.- Parameters:
n1- the first control point x-coordinaten2- the first control point y-coordinaten3- the second control point x-coordinaten4- the second control point y-coordinate- Returns:
- this for method chaining
-