You need to scroll right to the end to see the problem. I tried creating a codepen with just the last section but it seemed to work well on its own but in the more complex example like the codepen in this post, the scrollTrigger animation happens way to quickly.
What I want to happen is:
1. An image splits in half and moves to the side of the page (I've used divs in this example).
2. I would like a delay to happen before the 2 elements at the side of the page fade out and another div fades in slowly.
I have it working the way I want, the problem is, it all happens to fast.
I would like a delay between each of the `.to` and `.fromTo` pieces of the timeline but I don't know how to do that. Should I have a separate timeline for each one?
let tl = gsap
.timeline({
scrollTrigger: {
trigger: ".breaking",
start: "center 65%",
end: "center 51%",
scrub: 1
}
})
.to(".breaking", { justifyContent: "space-between", ease: "none" })
.to(".breaking .glass", { autoAlpha: 0, ease: "none" })
.fromTo(
".services",
{ opacity: 0, ease: "none" },
{ opacity: 1, ease: "none" }
);