A generated gist from a pen by me.
Spent 4 hours to build the simplest div carousel from scratch. I studied setInterval()
, animate()
, flag variables, the principles of z-index
and so on for the first time. Damn sorifestival I really thank you so much.
To debug: the indicator click event goes quite silly on a touch screen device. Consider the timeout reset to the
clearInterval
.