How to make a barber shop style Preloader?

How can I make the effect of the barber shops moving sign pole? You know, it’s like candy cane stripes moving. Anybody has any idea of a tutorial or something?