jQuery UI API - fade effects (Fade Effect)
category
usage
Description: Fade effects (Fade Effect) by fading element to hide or display an element.
fade
Examples
The use of special effects fade (Fade Effect) switching a div.
<! Doctype html> <Html lang = "en"> <Head> <Meta charset = "utf-8"> <Title> fade effect (Fade Effect) Demo </ title> <Link rel = "stylesheet" href = "// code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css"> <Style> #toggle { width: 100px; height: 100px; background: #ccc; } </ Style> <Script src = "// code.jquery.com/jquery-1.10.2.js"> </ script> <Script src = "// code.jquery.com/ui/1.10.4/jquery-ui.js"> </ script> </ Head> <Body> <P> Click anywhere to switch. </ P> <Div id = "toggle"> </ div> <Script> $ (Document) .click (function () { $ ( "#toggle") .toggle ( "Fade"); }); </ Script> </ Body> </ Html>