I absolutely love that GSAP now has ScrollTrigger built in - it's a game-changer!
However, I'm struggling with one thing - killing and resetting a timeline.
I am initialising like this:
var tl = gsap.timeline({
scrollTrigger: {
id: "trigger1",
trigger: "#trigger",
start: "top bottom",
end: "top top",
scrub: true
}
});
tl.fromTo(
"#element",
{
opacity: 0,
x: 500
},
{
opacity: 1,
x: 0
}
);
First I tried simply killin