ComponentOne Slider for ASP.NET AJAX: Slider for ASP.NET AJAX Animations > Transition Duration

Transition Duration

You can set how long each C1Slider animation effect takes by using the AnimationDuration property. The unit of time used for specifying animation effect duration is in milliseconds, and the default setting for the AnimationDuration property is 100 milliseconds (one-tenth of a second). Increase this value for longer animation effect, and decrease this number for a shorter animation effect.

The AnimationDuration does not change if the distance for movement changes. If the AnimationDuration property is set to 100, it will take 100 milliseconds for the slider thumb to move on the track no matter if it's moving 1 pixel or 500 pixels. If you've increased the control's Length, you may want to increase the transition animation's duration, if you've decreased the Length you may want to decrease the transition animation's duration. You may also wish to increase the transition animation's duration is you have increased the Step property.

Note that if the AnimationDuration property is set to 0, no animation will be used. To disable the slider's animation, simply set AnimationDuration to 0 in code, Source view, or in the Properties window.


Send comments about this topic to ComponentOne.
Copyright © ComponentOne LLC. All rights reserved.