Home > Web Front-end > JS Tutorial > jquery show and hide div special effects example_jquery

jquery show and hide div special effects example_jquery

WBOY
Release: 2016-05-16 17:41:17
Original
1040 people have browsed it

$(document).ready( function(){});
function hiden(){
$("#divObj").hide();//hide() function, to achieve hiding, You can also bring a time parameter (milliseconds) in the brackets. For example, hide(2000) hides at a speed of 2000 milliseconds. You can also bring slow, fast
}


function slideToggle(){
$("#divObj").slideToggle(2000);//To switch the curtain effect, click to close, click to open, the parameters can be none, the parameter description is the same as above
}
function show(){
$("#divObj").show();//Display, parameter description is the same as above
}
function toggle(){
$( "#divObj").toggle(2000);//Show and hide switching, the parameter can be none, the parameter description is the same as above

}
function slide(){
$("#divObj").slideDown(); // Curtain effect expansion
}

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template