Skip to main content

molecules

parallax

Band-Motion factory — scroll-scrubbed parallax for the image inside a clipping band, so the image drifts slower than the band. Returns { kill() }.

createBandParallax({ band, image, trigger, yPercent, index, reduceMotion }) scrubs the image from yPercent: -yPercent to +yPercent with ease: "none". Each band gets its own ScrollTrigger, built from trigger with id ${trigger.id}-${index} and the band as its trigger.

The structure mirrors card-motion/parallax.js. The trigger config comes in as a parameter, so this module doesn’t import the organism (HeroTriggers already imports it).

Reduced motion