Last active
December 24, 2015 08:18
-
-
Save donwalter/6769183 to your computer and use it in GitHub Desktop.
jQuery Fading Slide Menu
This file contains 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
#toggleEl { | |
display:none; | |
} | |
nav[role="navigation"] ul { | |
padding-left:0; | |
} | |
nav[role="navigation"] li { | |
list-style-type:none; | |
padding:0.5em; | |
display:block; | |
width:100%; | |
margin-left:0; | |
border:1px solid black; | |
} |
This file contains 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
<a id="clickedEl"><span>Click Me</span></a> | |
<nav role="navigation" id="toggleEl"> | |
<ul> | |
<li><a href="#">Item 1</a></li> | |
<li><a href="#">Item 2</a></li> | |
<li><a href="#">Item 3</a></li> | |
</ul> | |
</nav> |
This file contains 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
$(function(){ | |
$('#clickedEl').fadingSlideToggle('#toggleEl'); | |
}); |
This file contains 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
name: jQuery Fading Slide Toggle | |
description: Adding fading capability to slideUp/slideDown | |
authors: | |
- Don Walter | |
resources: | |
- https://raw.github.com/donwalter/jquery-fading-slide-toggle/master/jquery.fadingslidetoggle.js | |
normalize_css: no |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment