Created
May 15, 2014 21:18
-
-
Save carlosrojaso/e727596c1d38130bd2e7 to your computer and use it in GitHub Desktop.
JQ toggle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Instantaneously toggle the display of all paragraphs | |
$( "p" ).toggle(); | |
// Slowly toggle the display of all images | |
$( "img" ).toggle( "slow" ); | |
// Toggle the display of all divs over 1.8 seconds | |
$( "div" ).toggle( 1800 ); | |
// Toggle the display of all ordered lists over 1 second using slide up/down animations | |
$( "ol" ).slideToggle( 1000 ); | |
// Toggle the display of all blockquotes over 0.4 seconds using fade in/out animations | |
$( "blockquote" ).fadeToggle( 400 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment