Skip to content
Ryc O'Chet edited this page Feb 1, 2018 · 1 revision
- NOTE: This documentation is for Velocity v2.

Basics: Chaining

Chaining

When multiple Velocity calls are stacked onto an element (or a series of elements), they automatically queue onto one another - with each one firing once its prior animation has completed:

element
    /* Animate the width property. */
    .velocity({ width: 75 })
    /* Then, when finished, animate the height property. */
    .velocity({ height: 0 });