I am facing an issue of clearing the time interval for my image slider.
As I am clicking on the next thumbnail then the previous timer to be cleared and if am selecting the previous image then the previous selected timer to be cleared. Am using color code for timer for better understanding.
Here is my demo
When you setInterval, you assign it to a variable, and you then later use clearInterval(variable). So change
to