Skip to content

Instantly share code, notes, and snippets.

@Lysindr
Created August 3, 2016 20:01
Show Gist options
  • Save Lysindr/07d73599438b67d82289b584e7be7932 to your computer and use it in GitHub Desktop.
Save Lysindr/07d73599438b67d82289b584e7be7932 to your computer and use it in GitHub Desktop.
Hide element
<span class="hider social-icon social-icon-default fa fa-arrow-circle-down"></span>
<div id="hidden" style="display:none">
<ul>
<li><a href="">Home</a></li>
<li><a href="">News</a></li>
<li><a href="">Post</a></li>
<li><a href="">Exit</a></li>
</ul>
</div>
///Jquery
//hide element
$(".hider").click(function(){
$("#hidden").slideToggle("normal");
return false;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment