Fan-out animation on scroll

Writing the same scrollAnimate call four times is how a card grid ends up with four observers and four subtly different start times. scrollAnimateGroup takes a selector and animates everything it matches on one shared timeline, which is both less code and measurably less work for the browser on a long page.

20scrollAnimateGroup · one call

The code

A no-code automation product's integrations directory. Twelve app tiles arrive from one scrollAnimateGroup call — one set of props, one trigger, one instance to replay, pause or destroy.

Hero.tsx15 lines
import { scrollAnimateGroup } from 'svg-scroll-draw/group';

const tiles = document.querySelectorAll('.app-tile');

const group = scrollAnimateGroup([...tiles], {
  props: {
    opacity:   [0, 1],
    transform: ['translateY(28px) scale(0.96)', 'translateY(0) scale(1)'],
  },
  trigger: { start: 'top 88%', end: 'top 40%' },
  easing:  'ease-out',
  once:    true,
});

group.destroy();  // one call cleans up all twelve
Plugboard, no-code automations and their integrations: the first screen of its demo site

No-code automations and their integrations

Plugboard

Live site

Related examples

Make your own in the scroll reveal generator: set it up, watch it run, copy the code.

MIT licensed, zero runtime dependencies. Every API is a separate entry point, so you only ship what you import. Full API reference →