@GSAP Helper Yeah i figured out the timeline but do i make the container sticky when the subcontent inside let's day design features is being scrolled ?
useEffect(() => {
const _timeline = gsap.timeline({
defaults: {
duration: DURATION,
ease: "sine.out",
},
paused: true,
smoothChildTiming: true,
scrollTrigger: {
// anticipatePin: 1,
trigger: ".test-container",
start: "top top+=96px",
end: "bottom top",
markers: true,
scrub: true,
},
});
_timeline.to(".design-features",{
// y: featuresContainer.current.scrollHeight,
yPercent: -400,
// duration: 1,
scrollBehavior: "smooth",
ease: "Power1.easeInOut" });
},[]);