The jQuery library provides several
techniques for adding animation to a web page.
These include simple, standard
animations that are frequently used, and the ability to craft sophisticated
custom effects.
.hide() Hide the matched elements.
$('#book').hide();
.show() Display the matched elements.
$('#book').show();
$('#clickme').click(function() {
$('#book').show('slow',
function() {
//
Animation complete.
});
});
.fadeIn() .fadeOut() Display the matched
elements by fading them to opaque and back respectively.
$("div").fadeIn(“slow”);
$("div").fadeIn(3000, function ()
{
});
.toggle() Display or hide the matched
elements.
<p>Hello</p>
$("p").toggle();
$("p").toggle("slow");
No comments:
Post a Comment