Kill execution of delay () using jQuery

0

I'm using just this:

fadeIn(1000) - delay(6000) - fadeOut(1000) (8 seconds)

To display an alert for the user, I decided to put a button on the alert for the user to give dismiss , using fadeOut(300) , but it does not work.

The fadeOut only executes after delay() terminates, can force delay() to stop?

    
asked by anonymous 10.05.2018 / 20:39

1 answer

0

I got it, I took a look at DOC of Jquery , the function stop() , it kills the execution queue of animations, only use: stop().fadeOut(300); that beauty works!

    
10.05.2018 / 21:55