I update it in my project but still have same problems and bugs it happened only inside that container with Gsap when I change screen size
I am sure it bug with Gsap and no something else.
The problem opacity stay 0 or X posotion start -=200% instead back to normal so it must be Gsap start points change for some reason.
The second bug on cssruleplugin later ill find all information from my history page.
This is right code?
const totalScroll = 2600;
gsap.to(".parallaxContainer", {
scrollTrigger: {
pin: ".parallaxContainer",
end: `+=${totalScroll}`
}
});
gsap.to(".parallax-bg-up", {
scrollTrigger: {
trigger: ".parallaxContainer",
start: 'top 70%', end: `+=${totalScroll} top`,
scrub: true
},
y: (i, target) => -totalScroll * target.dataset.speed,
ease: "none"
});