hi! i am using the scrollTrigger successfully on my page, but i have only ONE div in my markup that is overflow-x: scroll (as opposed to the rest of the page which scrolls on y axis, obbbbbbviously). I would love to use gsap animations for this div...?
the elements I want to have morphing on scroll is each separate .displayVisual (as they fall in and out along the x-axis) ... eventually i want to transform so they grow in the center as user scrolls. I'm not sure what I'm missing here.... they're still only animating on vertical scroll?
gsap.from('.displayVisual', {
scrollTrigger: {
trigger: '.displayVisual',
toggleActions: 'restart pause resume reset',
scrub: true,
},
duration: 1,
scale: 1.3,
});