-
Notifications
You must be signed in to change notification settings - Fork 146
Animation
Animation is an abstract base class used as a starting point for all the other animations. It provides the basic mechanics for the animation (playing, pausing, stopping, timing, etc.) and leaves the actual animation to be done in the abstract methods getAnimatedValue and setValue.
| Name | Description |
|---|---|
| duration | Length of the animation in seconds. The default is 1. |
| fps | Number of steps per second. The default is 25. |
| isActive | true if animation is active, false if not. |
| isPlaying | true if animation is playing, false if not. |
| percentComplete | Percentage of the animation already played. |
| target | Target Sys.UI.DomElement of the animation. If the target of this animation is null and the animation has a parent, then it will recursively use the target of the parent animation instead. |
| Name | Description |
|---|---|
| .ctor(target, duration, fps) | |
| getAnimatedValue(percentage) | Determine the state of the animation after the given percentage of its duration has elapsed. |
| interpolate(start, end, percentage) | The interpolate function is used to find the appropriate value between starting and ending values given the current percentage. |
| onEnd() | The onEnd method is called just after the animation is played each time. |
| onStart() | The onStart method is called just before the animation is played each time. |
| onStep(percentage) | The onStep method is called repeatedly to progress the animation through each frame. |
| pause() | Pause the animation if it is playing. Calling play will resume where the animation left off. |
| play() | Play the animation from the beginning or where it was left off when paused. |
| setAnimationTarget(id) | Sets animation target by id. |
| setOwner(owner) | Makes this animation the child of another animation. |
| setValue(value) | Set the current state of the animation. |
| stop(finish) | Stop playing the animation. |
| Name | Description |
|---|---|
| ended | Fires just after the animation is played each time. |
| started | Fires just before the animation is played each time. |
| step | Fires at each frame of the the animation. |
Length of the animation in seconds. The default is 1.
Getter name: get_duration()
Setter name: set_duration(value)
Number of steps per second. The default is 25.
Getter name: get_fps()
Setter name: set_fps(value)
Target Sys.UI.DomElement of the animation. If the target of this animation is null and the animation has a parent, then it will recursively use the target of the parent animation instead.
Remarks: Do not set this property in a generic Xml animation description. It should be set using either the extender's TargetControlID or the AnimationTarget property (the latter maps to Sys.Extended.UI.Animation.set_animationTarget). The only valid way to set this property in the generic Xml animation description is to use the dynamic property TargetScript="$get('myElement')".
Getter name: get_target()
Setter name: set_target(value)
Percentage of the animation already played.
Getter name: get_percentComplete()
Setter name: set_percentComplete(value)
true if animation is active, false if not.
Getter name: get_isActive()
true if animation is playing, false if not.
Getter name: get_isPlaying()
Params:
-
target
- Type: Object
- Description: Target of the animation.
-
duration
- Type: Number
- Description: Length of the animation in seconds. The default is 1.
-
fps
- Type: Number
- Description: Number of steps per second. The default is 25.
Play the animation from the beginning or where it was left off when paused.
Remarks: If this animation is the child of another, you must call play on its parent instead.
Pause the animation if it is playing. Calling play will resume where the animation left off.
Remarks: If this animation is the child of another, you must call pause on its parent instead.
Stop playing the animation.
Remarks: If this animation is the child of another, you must call stop on its parent instead.
Params:
-
finish
- Type: Boolean
- Description: Whether or not stopping the animation should leave the target element in a state consistent with the animation playing completely by performing the last step. The default value is true.
The onStart method is called just before the animation is played each time.
The onStep method is called repeatedly to progress the animation through each frame.
Params:
-
percentage
- Type: Number
- Description: Percentage of the animation already complete.
The onEnd method is called just after the animation is played each time.
Determine the state of the animation after the given percentage of its duration has elapsed.
Params:
-
percentage
- Type: Number
- Description: Percentage of the animation already complete.
Set the current state of the animation.
Params:
-
value
- Type: Object
- Description: Animation state.
The interpolate function is used to find the appropriate value between starting and ending values given the current percentage.
Params:
-
start
- Type: Number
- Description: Start of the range to interpolate.
-
end
- Type: Number
- Description: End of the range to interpolate.
-
percentage
- Type: Number
- Description: Percentage completed in the range to interpolate.
Makes this animation the child of another animation.
Params:
-
owner
- Type: Object
- Description: Parent animation.
Sets animation target by id.
Params:
-
id
- Type: Object
- Description: ID of a Sys.UI.DomElement or Sys.UI.Control to use as the target of the animation If no Sys.UI.DomElement or Sys.UI.Control can be found for the given ID, an argument exception will be thrown.
Fires just before the animation is played each time.
Add event handler method: add_started(handler)
Remove event handler method: remove_started(handler)
Raise event method: raise_started()
Fires just after the animation is played each time.
Add event handler method: add_ended(handler)
Remove event handler method: remove_ended(handler)
Raise event method: raise_ended()
Fires at each frame of the the animation.
Add event handler method: add_step(handler)
Remove event handler method: remove_step(handler)
Raise event method: raise_step()
This content was moved from https://ajaxcontroltoolkit.codeplex.com/documentation to this Documentation wiki. This is now the authoritative location of the AJAX Control Toolkit documentation.
- Step-by-Step Installation Guide
- Upgrading from v7.x and below
- Uninstalling the AJAX Control Toolkit
- Troubleshooting Installer Issues
- Updating the Project from CI Builds
- How to Use Bundling and CDN
- Creating a Custom Localization
- Creating a Custom Control
- Design Standards
Controls:
- Accordion
- AjaxFileUpload
- AreaChart
- AsyncFileUpload
- BarChart
- BubbleChart
- ComboBox
- Editor (deprecated)
- Gravatar
- LineChart
- NoBot
- PieChart
- Rating
- ReorderList
- Seadragon
- TabContainer
- TabPanel
Extenders:
- AlwaysVisibleControl
- Animation
- AutoComplete
- BalloonPopup
- Calendar
- CascadingDropDown
- CollapsiblePanel
- ColorPicker
- ConfirmButton
- DragPanel
- DropDown
- DropShadow
- DynamicPopulate
- FilteredTextBox
- HoverMenu
- HtmlEditor
- ListSearch
- MaskedEdit
- MaskedEditValidator
- ModalPopup
- MultiHandleSlider
- MutuallyExclusiveCheckBox
- NumericUpDown
- PagingBulletedList
- PasswordStrength
- PopupControl
- ResizableControl
- RoundedCorners
- Slider
- SlideShow
- TextBoxWatermark
- ToggleButton
- UpdatePanelAnimation
- ValidatorCallout