Search code examples
jqueryjquery-animateunbind

jQuery: stop animation from element?


when applying animation to an element - eg. div.animate() - how can i unbind that animation from single elements?

i've tried div.unbind() and div.unbind("animate") but didnt work..

thanks


Solution

  • I think you need this:

    $('#div').stop(); // this stop the currently-running animation
    

    The animation is not bind to an element, it is just an effect => you can't unbind