Code

GSAP

Stagger

Intermediate Apply a time offset between each element using the stagger option. Supports from: 'start' | 'center' | 'end' | 'random' and custom grid layouts. GSAP Docs

const tl = gsap.timeline({
  repeat: -1, repeatDelay: 0.6
});

// Cascade left → right
tl.from(cells, {
  scale: 0, opacity: 0, rotation: 90,
  duration: 0.5, ease: 'back.out(1.7)',
  stagger: {
    each: 0.06,
    from: 'start',
    grid: [5, 5],
  },
});

// Pulse from center outward
tl.to(cells, {
  scale: 1.25, duration: 0.35,
  ease: 'power1.out',
  stagger: {
    each: 0.04,
    from: 'center',
    grid: [5, 5],
  },
}, '+=0.2');