Animation
[ Class ]
Allows you to create and configure animations that can be played using CSS or JavaScript.
The Animation API is designed for use within controls. |
Constructors
Name | Description |
---|---|
Creates a new animation |
Functions
Name | Description |
---|---|
Returns the name of the control for which this animation was created. | |
Returns the CSS selector used to create the animation. | |
Returns the name generated for this animation. | |
Returns the current state of the animation. | |
Adds a keyframe. | |
Adds a keyframe. | |
Adds a keyframe. | |
Deletes all keyframes of this animation. | |
Reverses the order in which the keyframes are played. | |
Returns the keyframes of this animation. | |
Returns the configured duration of the animation in milliseconds. | |
Sets the duration in milliseconds that this animation should run. | |
Returns the configured delay after which the animation should start in milliseconds. | |
Sets the delay in milliseconds after which this animation should start. | |
Returns the configured number of repetitions the animation should run through. | |
Sets the number of repetitions the animation should run through. | |
Returns the configured direction of the animation. | |
Sets the direction of the animation. | |
Returns the configured timing function. | |
Sets the timing function of the animation. | |
Returns whether the first keyframe should be effective before the start of the animation and/or the last keyframe after the end of the animation. | |
Specifies whether the first keyframe should be effective before the start of the animation and/or the last keyframe after the end of the animation. | |
Returns whether animation-specific CSS should be removed after the end of the animation. | |
Sets whether animation-specific CSS should be removed after the end of the animation. | |
Returns whether the animation is played with CSS or JavaScript. | |
Sets whether, if possible, the animation should be played with CSS or JavaScript. | |
Registers a callback for an animation event. | |
Unregister a callback for an animation event. | |
Returns all registered event handlers. | |
Starts or resumes the animation if paused. | |
Pauses the animation. | |
Skips the animation. | |
Resets the animation to the first keyframe. |
Interfaces
Name | Description |
---|---|
Defines the state of an animation at a certain point in time. | |
Contains information about events that occur during the course of an animation. |
Enumerations
Name | Description |
---|---|
Defines the states an animation can assume. |
Available from 1.8 |
- constructor
- controlName
- selector
- animationName
- state
- addKeyframe
- addKeyframe
- addKeyframe
- clearKeyframes
- reverseKeyframes
- keyframes
- duration
- duration
- delay
- delay
- iterationCount
- iterationCount
- direction
- direction
- timingFunction
- timingFunction
- fillMode
- fillMode
- cleanup
- cleanup
- useCss
- useCss
- registerEventHandler
- unregisterEventHandler
- eventHandlers
- run
- pause
- skip
- reset
- Keyframe
- AnimationEvent
- Status