Course contentsShow
← Web Development
Lesson 2555 of 2,98246. Animation LibrariesFree lesson

Stagger Animations

Animate multiple elements with staggered delays for polished sequential effects.

Stagger Animations

What you'll learn: How to animate multiple elements with staggered delays to create polished, sequential visual effects using GSAP.

The Choreography of Motion

Imagine a line of dominoes falling one after another—that's the essence of stagger animations. Instead of animating multiple elements simultaneously, stagger animations introduce calculated delays between each element, creating a wave-like, sequential effect that feels organic and professional.

How Stagger Works in GSAP

GSAP provides a stagger property that automatically calculates delays for multiple elements. You target a collection of elements (using a class selector, for instance), and GSAP handles the timing distribution:

// Animate all .box elements with 0.2s between each
gsap.to(".box", {
  y: 100,
  opacity: 0,
  duration: 0.5,
  stagger: 0.2  // Each element starts 0.2s after the previous
});

Advanced Stagger Control

Stagger can be a simple number (delay in seconds) or an object with fine-tuned control:

gsap.from(".card", {
  scale: 0,
  rotation: 360,
  duration: 0.8,
  stagger: {
    amount: 1.5,   // Total time spread across all elements
    from: "center", // Start from center, edges, start, or end
    ease: "power2.out"
  }
});

The amount property distributes the total stagger time evenly, while from controls the starting point of the wave.

Why Stagger Animations Matter

Staggered animations guide the user's eye naturally across content, reduce visual overwhelm, and add personality to interface transitions. They're perfect for lists, grids, navigation menus, and any repeating UI elements.

Key Takeaway: Stagger animations create professional sequential effects by automatically distributing delays across multiple elements, transforming abrupt simultaneous animations into smooth, choreographed motion.