Implementing jQuery shake effect on .animate()

I am trying to implement a shake effect while the .animate() function is executing. And I want that shake effect to stop when the following function fires. Here is my code:

    angel.animate({ // shake effect here
        top: y,
        left: x
    }, 520, function () { // stop shake effect here
        // alert("lose");
        $  ('.bug').attr('src', 'img/blood.png');
        //explode the dream
        explode(x, y, dream);
        //you lose
        lose();
    });

newest questions tagged jquery – Stack Overflow

About Admin