How to modify animation in JS?

There are something like samopisnogo slider, it has animations auto slide every 5 seconds, as is the arrow. Arrow sometimes it happens that at the moment of pressing occurs the animation of the slideshow and get a double click.

Tell me what can I add that arrow, the function of the slideshow was off and would turn on again ?
June 14th 19 at 20:05
3 answers
June 14th 19 at 20:07
I always do that every 5 seconds spinning - interval, when clicked we reset the interval and at the end click again renewable, when you click on the arrow of course, and no problems.
Thanks, tried to implement, did not work :( - antonetta.Batz82 commented on June 14th 19 at 20:10
June 14th 19 at 20:09
You can for example write the code. Well, actually, this is the question and the answer
The problematic code here throw the whole, there is something: that feature animation was frozen when clicking on the arrow? - antonetta.Batz82 commented on June 14th 19 at 20:12
you have some code that does this and you propose to add to make it work the way you want. You to Wang-programmer. - antonetta.Batz82 commented on June 14th 19 at 20:15
June 14th 19 at 20:11
Are you afraid that Your code will use the evil students in the production? And You just not ready to share them? Or what's the problem?
Sobsno the idea is simple: for the duration of the animation, disable actions with a slider.
There is a slider it has 3 events: left arrow, right arrow and the timer. Well, delete them
EventTarget.removeEventListener() and the timer clearTimeout() clearInterval()

https://developer.mozilla.org/en-US/docs/Web/API/E...
Yes, let them use) There is the slider difficult to move probably not as difficult as laziness, why I thought that knowledgeable and know what I want to know) - antonetta.Batz82 commented on June 14th 19 at 20:14

Find more questions by tags jQueryJavaScript