Описание тега jquery-animate
Refers to jQuery's animate() method. For generic graphical animations, see the animation tag.
Refers to jquery's animate()
method. For generic graphical animations, see the animation tag.
Example usage:
$('p').animate({
width: 200,
height: 300
}, 1000, function() {
alert('Animation complete!')
});
This particular animation modifies the width
and height
of all matching <p>
elements over a period of 1000 milliseconds (1 second). Once the animation is complete, it fires an alert to inform the user.