Hamburger menu prototypes
How do I make an hamburger menu prototypes?
Howdy! I hope you all like it!. What is a hamburger menu prototypes? How do you make a hamburger menu prototypes? This script and codes were developed by Mayur Elbhar on 31 October 2022, Monday.
Hamburger menu prototypes - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Hamburger menu prototypes</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <h1>Hamburger menu prototypes</h1>
<div class="wrapper"> <div class="prototype_ARROW"> <div class="menu_1"> <div id="line"></div> <div id="line"></div> <div id="line"></div> </div> <div class="menu_2"> <div id="line_2"></div> <div id="line_2"></div> <div id="line_2"></div> </div> <div class="menu_3"> <div id="line_3"></div> <div id="line_3"></div> <div id="line_3"></div> </div> <div class="menu_4"> <div id="line_4"></div> <div id="line_4"></div> <div id="line_4"></div> </div> </div> <div class="prototype_X"> <div class="menu_5"> <div id="line_5"></div> <div id="line_5"></div> </div> <div class="menu_6"> <div id="line_6"></div> <div id="line_6"></div> </div> <div class="menu_7"> <div id="line_7"></div> <div id="line_7"></div> </div> <div class="menu_8"> <div id="line_8"></div> <div id="line_8"></div> <div id="line_8"></div> </div> </div> <div class="prototype_C" > <div class="menu_9"> <div id="inner"> <div id="line_9"></div> <div id="line_9"></div> <div id="line_9"></div> <div id="line_9"></div> <div id="line_9"></div> </div> </div> </div>
</div>
<link href='https://fonts.googleapis.com/css?family=Roboto:900' rel='stylesheet' type='text/css'> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Hamburger menu prototypes - Script Codes CSS Codes
* { margin: 0%; padding: 0%; transition: 0.5s;
}
html, body { background: #fff;
}
.wrapper { max-width: 410px; width: 100%; margin: 50px auto; height: 100%; padding: 10px 10px; /*border: 1px solid;*/
}
h1 { text-transform: uppercase; color: #363636; text-align: center; margin-top: 50px; font-size: 50px; font-family: 'Roboto', sans-serif;
}
.prototype_ARROW { margin-bottom: 50px; padding-bottom: 50px;
}
.prototype_X { margin-bottom: 50px; padding-bottom: 50px;
}
/*******************MENU_1*********************/
.menu_1 { width: 50px; height: 50px; cursor: pointer;
}
.menu_1 #line { width: 50px; height: 5px; background: #363636; margin-top: 3px;
}
.menu_on { /* #line { background: #f44330; }*/
}
.menu_on #line:nth-child(1) { width: 30px; transform: scale(1) rotate(-45deg) translateX(2px);
}
.menu_on #line:nth-child(2) { margin-left: 7px; width: 50px; border-left-radius-top: 5px; border-left-radius-bottom: 5px;
}
.menu_on #line:nth-child(3) { width: 30px; transform: scale(1) rotate(45deg) translateX(2px);
}
/*******************MENU_2*********************/
.menu_2 { height: 50px; width: 50px; cursor: pointer; /***ALIGNING THE SNIPPET -- BELOW CODE CAN BE REMOVED OR REPLACED WHILE POSITIONING IN PROJECTS***/ margin-left: 100px; margin-top: -54px;
}
#line_2 { width: 50px; height: 5px; background: #363636; margin-top: 3px;
}
.menu_on #line_2:nth-child(1) { width: 30px; margin-left: 20px; transform: scale(1) rotate(45deg) translateX(-2px);
}
.menu_on #line_2:nth-child(2) { margin-left: -7px; width: 50px;
}
.menu_on #line_2:nth-child(3) { width: 30px; margin-left: 20px; transform: scale(1) rotate(-45deg) translateX(-2px);
}
/*******************MENU_3*********************/
.menu_3 { height: 50px; width: 50px; cursor: pointer; /***ALIGNING THE SNIPPET -- BELOW CODE CAN BE REMOVED OR REPLACED WHILE POSITIONING IN PROJECTS***/ margin-left: 200px; margin-top: -52px;
}
#line_3 { width: 50px; height: 5px; background: #363636; margin-top: 3px;
}
.menu_on #line_3:nth-child(1) { width: 30px; transform: scale(1) rotate(135deg) translateX(-2px) translateY(2px);
}
.menu_on #line_3:nth-child(2) { margin-top: 9px; transform: scale(1) rotate(90deg) translateY(2px);
}
.menu_on #line_3:nth-child(3) { width: 30px; transform: scale(1) rotate(-135deg) translateX(5px) translateY(30px);
}
/*******************MENU_4*********************/
.menu_4 { height: 50px; width: 50px; cursor: pointer; /***ALIGNING THE SNIPPET -- BELOW CODE CAN BE REMOVED OR REPLACED WHILE POSITIONING IN PROJECTS***/ margin-left: 300px; margin-top: -52px;
}
#line_4 { width: 50px; height: 5px; background: #363636; margin-top: 3px;
}
.menu_on #line_4:nth-child(1) { width: 30px; transform: scale(1) rotate(315deg) translateX(-3px) translateY(33px);
}
.menu_on #line_4:nth-child(2) { margin-bottom: 9px; margin-left: -2px; transform: scale(1) rotate(-90deg) translateY(2px);
}
.menu_on #line_4:nth-child(3) { width: 30px; transform: scale(1) rotate(-315deg) translateX(5px) translateY(3px);
}
/***********prototype_X***************/
/****************menu_5*********************/
.menu_5 { height: 50px; width: 50px; cursor: pointer;
}
#line_5 { height: 5px; width: 50px; background: #363636; margin-top: 10px;
}
.menu_on #line_5:nth-child(1) { width: 50px; transform: scale(1) rotate(315deg) translateX(-10px) translateY(0px);
}
.menu_on #line_5:nth-child(2) { width: 50px; transform: scale(1) rotate(-135deg) translateX(12px) translateY(0px);
}
/*******************MENU_6**********************/
.menu_6 { height: 50px; width: 50px; cursor: pointer; /***ALIGNING THE SNIPPET -- BELOW CODE CAN BE REMOVED OR REPLACED WHILE POSITIONING IN PROJECTS***/ margin-left: 100px; margin-top: -60px;
}
#line_6 { height: 5px; width: 50px; background: #363636; margin-top: 10px;
}
.menu_on #line_6:nth-child(1) { width: 50px; transform: rotate(45deg) translateX(10px) translateY(0px);
}
.menu_on #line_6:nth-child(2) { width: 50px; transform: rotate(-45deg) translateX(10px) translateY(0px);
}
/*******************MENU_7*********************/
.menu_7 { height: 50px; width: 50px; cursor: pointer; /***ALIGNING THE SNIPPET -- BELOW CODE CAN BE REMOVED OR REPLACED WHILE POSITIONING IN PROJECTS***/ margin-left: 200px; margin-top: -60px;
}
#line_7 { height: 5px; width: 50px; background: #363636; margin-top: 10px;
}
.menu_on #line_7:nth-child(1) { width: 50px; transform: rotate(-45deg) translateX(0px) translateY(10px);
}
.menu_on #line_7:nth-child(2) { width: 50px; transform: rotate(45deg) translateX(0px) translateY(-10px);
}
/******************MENU_8******************/
.menu_8 { height: 50px; width: 50px; cursor: pointer; /***ALIGNING THE SNIPPET -- BELOW CODE CAN BE REMOVED OR REPLACED WHILE POSITIONING IN PROJECTS***/ margin-left: 300px; margin-top: -55px;
}
#line_8 { height: 3px; width: 50px; background: #363636; margin-top: 5px;
}
.menu_on #line_8:nth-child(1) { width: 50px; transform: rotate(30deg) translateX(2px) translateY(-5px);
}
.menu_on #line_8:nth-child(2) { width: 50px; transform: rotate(90deg) translateX(0px) translateY(17px);
}
.menu_on #line_8:nth-child(3) { width: 50px; transform: rotate(-30deg) translateX(1px) translateY(6px);
}
/*****************prototype_C*****************/
/*****************menu_9*****************/
.menu_9 { height: 40px; width: 40px; cursor: pointer; border: 2px solid #363636; border-radius: 30px; padding: 5px; /***ALIGNING THE SNIPPET -- BELOW CODE CAN BE REMOVED OR REPLACED WHILE POSITIONING IN PROJECTS***/
}
#line_9 { height: 2px; width: 30px; background: #363636; margin-top: 5px;
}
#inner { margin: 10px 5px;
}
#line_9:nth-child(4) { opacity: 0;
}
#line_9:nth-child(5) { opacity: 0;
}
.menu_on .menu_9 { border-color: #363636;
}
.menu_on #line_9:nth-child(1) { width: 15px; transform: rotate(45deg) translateX(0px) translateY(0px);
}
.menu_on #line_9:nth-child(2) { opacity: 0;
}
.menu_on #line_9:nth-child(3) { width: 15px; transform: rotate(-45deg) translateX(0px) translateY(0px);
}
.menu_on #line_9:nth-child(4) { opacity: 1; width: 15px; transform: rotate(-45deg) translateX(26px) translateY(-4px);
}
.menu_on #line_9:nth-child(5) { opacity: 1; width: 15px; transform: rotate(45deg) translateX(1px) translateY(-20px);
}
Hamburger menu prototypes - Script Codes JS Codes
$(".menu_1").click(function(){ $(this).toggleClass("menu_on");
});
$(".menu_2").click(function(){ $(this).toggleClass("menu_on");
});
$(".menu_3").click(function(){ $(this).toggleClass("menu_on");
});
$(".menu_4").click(function(){ $(this).toggleClass("menu_on");
});
$(".menu_5").click(function(){ $(this).toggleClass("menu_on");
});
$(".menu_6").click(function(){ $(this).toggleClass("menu_on");
});
$(".menu_7").click(function(){ $(this).toggleClass("menu_on");
});
$(".menu_8").click(function(){ $(this).toggleClass("menu_on");
});
$(".menu_9").click(function(){ $(this).toggleClass("menu_on");
});
Developer | Mayur Elbhar |
Username | mayurelbhar |
Uploaded | October 31, 2022 |
Rating | 3 |
Size | 4,243 Kb |
Views | 10,120 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
FLAT UI ELEMENTS | 2,263 Kb |
SAMSUNG PHONE MOCKUP | 2,666 Kb |
Simple Text Shadow with CSS | 1,575 Kb |
Typography Experiment 2 - Blurry Text | 1,700 Kb |
A simple log in form made with css | 2,160 Kb |
Website Layout | 3,818 Kb |
Text-Shadow | 2,067 Kb |
Typography Experiment | 1,959 Kb |
FLAT UI BUTTONS | 2,529 Kb |
Contact US Form | 2,662 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
A Pen by Paul Sullivan | Pwsm50 | 2,349 Kb |
Button shaking | SusanneLundblad | 2,227 Kb |
Replace url via jquery | Serluk | 1,429 Kb |
Sticky footer testing | 75th | 1,649 Kb |
Material design - button rainbow circle | Kunukn | 3,652 Kb |
CSS3 keyframe onload animation. | Samueljseay | 1,706 Kb |
Shape Outside - Polygon | Stacy | 3,954 Kb |
Opening Reveal Modal On Document Ready | Winghouchan | 1,787 Kb |
Commuter Line Tokyu 8500 | Pedox | 7,031 Kb |
Brian The CSS Bee | Jonitrythall | 3,922 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!