Hello!
I have been researching into timeline organisation as I have a lot of animation on my current project. I have read that animations should be put into their own functions and then added to the master timeline, cleaning up the code a lot. However my question is specifically about a scrolltrigger animation that I am repeating, as the trigger and the target/selector are different, however the rest of the code stays the same. Any recommendations?
gsap.from(".about .char", {
scrollTrigger: {
trigger: ".about",
start: "top-=50 80%",
end: "+=100",
scrub: 1,
toggleActions: "play none reverse reset"
},
rotation: 180,
transformOrigin: "50% 100%",
opacity: 0,
duration: 0.5
});