How to make a slider with interval?

https://codepen.io/anon/pen/vMqmgP
Code that needs to alter the bottom.

I need the slider automatically every 5 seconds pressed the button with the class .but next I press but button with class .prev or .next setInterval stayed.
March 20th 20 at 11:24
1 answer
March 20th 20 at 11:26
You even seen the code? I have the interval set auto-pressing buttons with the class .next. And when I ask through if someone clicks on .prev or .next clearInterval't work.I need an if KOs interval and triggering only when someone clicks and not interval! - Barrett_Simonis commented on March 20th 20 at 11:29
@janie_Bradtke,
I need an if KOs interval and triggering only when someone clicks and not interval!
Duc with a call to clearInterval the interval shoot and process this manual click.

Or I completely misunderstand what you're asking? - Lauretta.Hammes commented on March 20th 20 at 11:32
If I pointed out if someone press prev or next to clear the interval.And you pointed out the interval of every 5 seconds click on the next button.So after one automatic click the next button triggers clearInterval.And I need to clearInterval worked if the person clicked on the button and not the interval. - Barrett_Simonis commented on March 20th 20 at 11:35
@janie_Bradtke,
And you pointed out the interval of every 5 seconds click on the next button.
this is where I proposed? - Lauretta.Hammes commented on March 20th 20 at 11:38
@Ashtyn_OrtIn place in wrote you an error - Barrett_Simonis commented on March 20th 20 at 11:41
@janie_Bradtke, okay. - Lauretta.Hammes commented on March 20th 20 at 11:44

Find more questions by tags JavaScriptjQuery