Animation
5 Oct 20151 minute to read
This feature includes the animation effect for the Slider when moving the Slider handle.
Enabling Animation
By default, animation is enabled in the Slider. Using the EnableAnimation property you can enable/disable the animation effects. Data type of this property is “Boolean”.
The following steps explains you on how to disable the animation effect in Slider.
- In an VIEW page, specify the helper elements to render the “Default Slider”.
// Add this code in your view page
@(Html.EJ().Slider("defaultSlider").Value("60").Width("500").EnableAnimation(false))
Customizing Animation speed
Animation speed of the Slider indicates the speed at which the slider handle can be moved. Higher the value specified for this property decreases the rate of speed at which the Slider handle can be moved. You can customize the animation speed of the Slider using the AnimationSpeed property. Default value of this property is “500”.
The following steps explains you on how to customize the animation speed.
- In an VIEW page, specify the helper elements to render the “Default Slider”.
// Add this code in your view page
@(Html.EJ().Slider("defaultSlider").Value("60").Width("500").AnimationSpeed(600))