-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Option Speed
Ryc O'Chet edited this page Feb 1, 2018
·
1 revision
- NOTE: This documentation is for Velocity v2.
The speed
option allows you to change the speed that an animation is running at. This includes running it backwards, faster, or slower. The default speed is 1.0
, meaning that 1ms of animation duration takes 1ms to display. Running it at a higher speed reduces the time an animation will take to play, while running it at a lower speed will make it take longer.
// This animation actually takes 500ms
element.velocity({
opacity: 0.5
}, {
duration: 1000,
speed: 2
});