If you're repeating code, that probably means a function could help you out.   Like you could pass in the duration....   ScrollTrigger.matchMedia({ "(min-width: 800px)"() { const animation = createAnimation(5); // Return a function that'll get called when the breakpoint no longer matches so we can kill() the animation (or whatever) return () => animation.kill(); }, "(max-width: 799px)"() { const animation = createAnimation(1); return () => anim
    • Like
    5