Hi guys, this is my first time using GSAP. As mentioned in the title, I'm able to generate the effect without using scrub. However, I want the text color changes with scrub while entering the div and leaving the div. I tried using 2 triggers to do it but it failed. Anyone know how to make it works?
Kindly let me know what's the better way of writing GSAP so that I'm able to refactor it.
Thank you so much.
See the Pen abyOaZg by callmeliow (@callmeliow) on Co