stagger
Returns a function that receives each animating element's index and the total count, then returns a delay. Use it for enter and exit cascades.
import { animate, stagger } from 'motion-solidjs'
animate('.row', { y: 0, opacity: 1 }, { delay: stagger(0.05, { from: 'first' }) })
Options
from-'first' | 'last' | 'center' | numberstartDelay- additional offset before the cascade beginsease- easing applied to the delay distribution
Inside variants, transition.staggerChildren is sugar over the same idea.