-
Notifications
You must be signed in to change notification settings - Fork 137
PropertyAnimation
-
Animation
- ParentAnimation
- FadeAnimation
- PropertyAnimation
- ScaleAnimation
- Action
PropertyAnimation (inherits Animation)
The PropertyAnimation is a useful base animation that will assign the value from getAnimatedValue to a specified property. You can provide the name of a property alongside an optional propertyKey (which indicates the value property[propertyKey], like style['backgroundColor']).
Name | Description |
---|---|
property | A string value specifying the name of the target element's property to be set when animation plays. |
propertyKey | Optional key of the property to be set (which indicates the value property[propertyKey], like style['backgroundColor']). Note that for the style property, the key must be in a JavaScript friendly format (i.e. backgroundColor instead of background-color). |
Name | Description |
---|---|
constructor(target, duration, fps, property, propertyKey) | |
getValue() | Get the property's current value. |
onStart() | The onStart method is called just before the animation is played each time. |
setValue(value) | Set the property's value. |
A string value specifying the name of the target element's property to be set when animation plays.
Getter name: get_property()
Setter name: set_property(value)
Optional key of the property to be set (which indicates the value property[propertyKey], like style['backgroundColor']). Note that for the style property, the key must be in a JavaScript friendly format (i.e. backgroundColor instead of background-color).
Getter name: get_propertyKey()
Setter name: set_propertyKey(value)
Params:
-
target
- Type: Object
- Description: Length of the animation in seconds. The default is 1.
-
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.
-
property
- Type: Object
- Description: Property of the target element to set when animating.
-
propertyKey
- Type: Object
- Description: optional key of the property to be set (which indicates the value property[propertyKey], like style['backgroundColor']). Note that for the style property, the key must be in a JavaScript friendly format (i.e. backgroundColor instead of background-color).
Get the property's current value.
The onStart method is called just before the animation is played each time.
Set the property's value.
Params:
-
value
- Type: Object
- Description: Value to set.
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