Hello,
So i have a div that when you scroll into it it gets pinned and then the scrolling animation starts the animation is
tl.fromTo(".wrapper", {height: '554px', ease: "power4.inOut"}, { height: '277px', ease: "power4.inOut"
}, "start")
when the animation is done i have a huge gap from the pin-spacer.
after days of searching and trying multiple things i couldn't achieve dynamic pin spacer height.
ScrollTrigger.create({ pinnedContainer: "outer-div", trigger: ".wrapper", scrub: 1, anticipatePin: 1, pinType: "transform", pinSpacing: true, start: startPoint, markers: true, end: endPoint, animation: tl, toggleActions: "play none none reverse",
})
this is my scrolltrigger.
any help would be appreciated.
Thanks in advance