They should be created in the order they appear, and it should work using what I showed above. Notice how I'm passing in the element. The function is supposed to create the trigger for the element being passed in.    gsap.utils.toArray(".scroll-trigger").forEach(element => { if (element.classList.contains("colors")) { createColor(element); } else { createFadeInOut(element); } }) function createColor(element) { ... } function createFadeInOut(element) { let fadedT
    • Like
    2