Straight out of the box the script works, but it's not exactly the kind of color transition I was imagining. I was not very specific, and chat GPT wrote one that returns to the default color after the scroll is complete.
Out of the box the script works, changing the button color whenever clicked to one of an array of hex values.