Hello
I'm fairly new to GSAP (and loving it BTW) and completely new to the forums (?). Using it in all commercial projects now.
I'd like to set up a series of 'layers' on the page that scrub, using batch (So I only need to call the animation on a single class).
This is what I have:
ScrollTrigger.batch(".layer.anim", {
onEnter: (elements, triggers) => {
gsap.to(elements, {
ease:'power1.inOut',
delay:0.25,
opacity: 1,
stagger: 0.25,
scrub:1, // added this, no joy..
duration:0.6,
y:0
});
}
});
I'd hoped adding 'scrub' to this would allow each layer to run onEnter...
Does anyone have any ideas they can share for this?
Thanks.