How would I create a rainbow LED lightstrip material?

I’m trying to create a material that has an animated looping LED lightstrip effect.

Similar to this: