+ 3
Why is my stop animation button not working and why is there a uncaught range error on console.
4 Antworten
+ 2
In line 27 in function repeat() you are calling function repeat() which leads to infinite recursion which in turn causes the maximum call stack size to be exceeded. (In short your program tries to run repeat() infinitely many times)
+ 1
Hape thank you it worked , but what if i want to repeat that animation infinite times , how do we do that
+ 1
mustafa raza I am not an expert with jQuery but according to the documentation of the animate method we can supply a callback function which gets called when the animation is completed. We can use this like so:
https://code.sololearn.com/WA15a24A0a19/?ref=app
+ 1
Hape thank you bro , you are an expert , just accept it 😀.