Home >Web Front-end >JS Tutorial >jquery show and hide div special effects example_jquery
$(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
}