jQuery/JS Common - utils - animationPresets
To avoid defining animations each time you animate an element(s), register different animations in the DevExtreme.animationPresets repository and request them by associated names when required. This repository has a built-in set of animations. Here they are:
- fade
- stagger-fade
- slide
- stagger-slide
- ios7-slide
- overflow
- ios7-toolbar
- stagger-smooth-drop
- stagger-drop
- stagger-3d-drop
To populate the animationPresets repository with your animations, use the registerPreset(name, config) method. To get the required animation from the repository, use the getPreset(name) method.
Methods
Name | Description |
---|---|
applyChanges() |
Applies the changes made in the animation repository. |
clear() |
Removes all animations from the repository. |
clear(name) |
Deletes an animation with a specific name. |
getPreset(name) |
Gets the configuration of an animation with a specific name. |
registerDefaultPresets() |
Registers predefined animations in the animation repository. |
registerPreset(name, config) |
Adds an animation with a specific name to the animation repository. |
resetToDefaults() |
Deletes all custom animations. |
If you have technical questions, please create a support ticket in the DevExpress Support Center.