I would like to stop my jquery animation when I open new tab in browser. Every time when I leave my page for a while and I come back after some time, my jquery slider goes crazy and it change slides like insane, because I didn’t stop it. Do you have some solution?
Share
I read somewhere about this and it’s called animation queue buildup. Instead of trying to stop animation when opening new tab, put
stop()just before starting an animation.This will ensure that previous animation is killed before continuing….
for example:
Hope this helps…