Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: CSS
Posted by: Marosi Dóra
Added: Dec 7, 2020 8:33 PM
Views: 4
Tags: no tags
  1. <div id="hamburger-menu"><span></span><span></span><span></span></div>
  2.  
  3. div#hamburger-menu {
  4.         float: right;
  5.         span {
  6.                 border: 2px solid black;
  7.                 width: 50px;
  8.                 margin: 5px;
  9.                 display: block;
  10.         }
  11. }
  12.  
  13. jQuery("#hamburger-menu").click(function (e) {  
  14.    jQuery("#nav").toggleClass('hidden');
  15. });
  16.