maybe I'm doing it wrong, the thing is that after using the stagger to open the lid when he wants to add another animation .to (...) it stops working on the scroll, when I remove the lines responsible for opening the lid, it works fine. Did not work .to(".anim-bin__img__item--3")..as if transform x is performed immediately without using a scroll
let bin = new gsap.timeline({
// defaults: {
// ease: "none",
// },
scrollTrigger: {
trigger: ".sec-anim-wrap",
start: "top top",
end: () => window.innerHeight,
scrub: true,
markers: true,
pin: ".sec-anim-wrap",
}
})
.to(".anim-bin__img__item-plat--10", {
opacity: 0,
// stagger:100
})
.from(".anim-bin__img__item-plat--all", {
opacity: 0,
stagger: 100
}, -1)
.to(".anim-bin__img__item-plat--all", {
opacity: 0,
stagger: 100
}, 100)
.set(".anim-bin__img__item-plat--1", {
opacity: 1,
})
.to(".anim-bin__img__item--3",{
y: -850,
})