I'm wondering if there's a way to dynamically change the color of an SVG path as an object moves along it, specifically using ScrollTrigger. I'd like the path to transition through colors as the object progresses along its path. Does anyone have experience or suggestions for achieving this effect?
Essentially as the red ball goes down the path, the path behind it becomes a different color like green and when the red ball goes up from the end marker the path goes back to its original color.
If there is any hints or help you can provide me that would be great. Thank you!