Wow i wasn't expecting answers that fast, thank you guys.
Sadly i don't know where to put this line of code, iam from design side !
Here is my slice of code :
<script>
gsap.registerPlugin(ScrollTrigger);
ScrollTrigger.defaults({
markers: false
});
gsap.to(".norookies", {
opacity: "100%",
scrollTrigger: {
trigger: ".img_rookies",
start: "top center",
toggleActions: "play none none reverse"
}
});
gsap.to(".nogreenwashing", {
opacity: "100%",
scrollTrigger: {
trigger: ".img_greenwashing",
start: "top center",
toggleActions: "play none none reverse"
}
});
gsap.to(".nogimmicks", {
opacity: "100%",
scrollTrigger: {
trigger: ".img_gimmicks",
start: "top center",
toggleActions: "play none none reverse"
}
});
</script>
The first animation works fine, the second starting around 50vh earlier than expected, the last one around 100vh earlier...
If i refresh, everything is working.
I am missing a concept here...
Please feel free to watch live link (the issue concerned the section "ARPERTON") : https://arperton.webflow.io/
Big thanks for your time.