Stopping and restarting an animation on hover in jQuery -


I am trying to create an animated button using jQuery that should stop on the hover and then restart when it Do not be.

I am using a loop for the animation that looks like this:

  $ (document) .ready (function testing () {$ ('# Value ({obscurity: 1}, {duration: 1500}). Value ({opacity: 0.5}, {duration: 750, complete: test} );});   

And I'm one. Attempted to add a hurdle with stop (), but I do not know how to restart the animation. Do you have any suggestions?

In addition, I have a small example of this here:

hover () The event handler can handle the handler in and handler mode as a first and second argument, respectively.

Hover (eventObject, handwriting (eventObject)

Create 2 different functions - one for "on" state, and "off" for one



Comments