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.
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.
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
No-code automations and their integrations
Plugboard
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 →