-
Notifications
You must be signed in to change notification settings - Fork 139
ScaleAnimation
-
Animation
- ParentAnimation
- FadeAnimation
- PropertyAnimation
- ScaleAnimation
- Action
ScaleAnimation (inherits Animation)
The ScaleAnimation scales the size of the target element by the given scaleFactor (i.e. a scaleFactor of .5 will shrink it in half and a scaleFactor of 2.0 will double it). If scaleFont is true, the size of the font will also scale with the element. If center is true, then the element's center will not move as it is scaled. It is important to note that the target must be positioned (i.e. absolutely) so that setting its top/left properties will change its location in order for center to have an effect.
Name | Description |
---|---|
center | Whether the target should stay centered while scaling. |
fontUnit | Unit of the font, which is only used if scaleFont is true. The default value is 'pt'. |
scaleFactor | The amount to scale the target (a scaleFactor of .5 will shrink it in half and a scaleFactor of 2.0 will double it). The default value is 1, which does no scaling. |
scaleFont | Whether the font should be scaled along with the size. |
unit | Length unit for the size of the target. The default value is 'px'. |
Name | Description |
---|---|
constructor(target, duration, fps, scaleFactor, unit, center, scaleFont, fontUnit) | |
getAnimatedValue(percentage) | Get the amount to scale the target. |
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. |
setValue(scale) | Scale the target by the given percentage. |
Whether the target should stay centered while scaling.
Getter name: get_center()
Setter name: set_center(value)
Unit of the font, which is only used if scaleFont is true. The default value is 'pt'.
Getter name: get_fontUnit()
Setter name: set_fontUnit(value)
The amount to scale the target (a scaleFactor of .5 will shrink it in half and a scaleFactor of 2.0 will double it). The default value is 1, which does no scaling.
Getter name: get_scaleFactore()
Setter name: set_scaleFactore(value)
Whether the font should be scaled along with the size.
Getter name: get_scaleFont()
Setter name: set_scaleFont(value)
Length unit for the size of the target. The default value is 'px'.
Getter name: get_unit()
Setter name: set_unit(value)
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.
-
scaleFactor
- Type: Number
- Description: The amount to scale the target (a scaleFactor of .5 will shrink it in half and a scaleFactor of 2.0 will double it). The default value is 1, which does no scaling.
-
unit
- Type: String
- Description: Length unit for the size of the target. The default value is 'px'.
-
center
- Type: Boolean
- Description: Whether the target should stay centered while scaling.
-
scaleFont
- Type: Boolean
- Description: Whether the font should be scaled along with the size.
-
fontUnit
- Type: String
- Description: Unit of the font, which is only used if scaleFont is true. The default value is 'pt'.
Get the amount to scale the target.
Params:
-
percentage
- Type: Number
- Description: Percentage of the animation already complete.
The onEnd method is called just after the animation is played each time.
The onStart method is called just before the animation is played each time.
Scale the target by the given percentage.
Params:
-
scale
- Type: Number
- Description: Percentage to scale the target.
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