Hello!
First of all can I just say this framework is AWESOME.
I have a problem - this website, when I scroll down, everything is fine, but when I scroll back up, all my text elemets beautifully reverse their animation, except for the first case study block, which does not fade out but just suddenly disappears if I reverse before reaching the end. How do I fix this problem? The JS code is exactly the same for all of them.
here is a screencast: https://drive.google.com/file/d/1uugbp9_ta6RLQjBYexZI-bop8qa-b1mq/view?usp=sharing
This is my code:
gsap.from("#case-study-1", {
scrollTrigger : {
trigger: "#case-study-1",
start: "20px 80%",
toggleActions: "play none reverse reset",
markers: true,
},
y: 200,
opacity: 0,
duration: 1
});