Opening Menu Concept
How do I make an opening menu concept?
What is a opening menu concept? How do you make a opening menu concept? This script and codes were developed by Chung Man Chau on 14 January 2023, Saturday.
Opening Menu Concept - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Opening Menu Concept</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <!-- Inspired by Rune Sejer Hoffmann -->
<header class="menu"> <div class="toggle-btn"> <span></span> <span></span> <span></span> </div> <nav class="menu-list"> <ul> <li>Home</li> <li>About</li> <li>Shop</li> <li>Offers</li> <li>Contact</li> </ul> </nav>
</header> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.2/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Opening Menu Concept - Script Codes CSS Codes
body { font-family: sans-serif; background-color: #333;
}
.menu { position: relative; overflow: hidden; width: 90%; height: 70px; margin: 20px auto; list-style-type: none; text-align: center;
}
.menu.active .toggle-btn span:nth-child(1) { top: 50%; -webkit-transform: rotate(45deg) translate(-5%, -50%); transform: rotate(45deg) translate(-5%, -50%);
}
.menu.active .toggle-btn span:nth-child(2) { -webkit-transform: translateX(200px); transform: translateX(200px); opacity: 0;
}
.menu.active .toggle-btn span:nth-child(3) { top: 50%; -webkit-transform: rotate(-45deg) translate(0%, -50%); transform: rotate(-45deg) translate(0%, -50%);
}
.menu.active .menu-list { width: 100%;
}
.menu.active .menu-list ul li { opacity: 1;
}
.menu .toggle-btn { position: absolute; z-index: 10; top: 0; left: 0; width: 70px; height: 70px; cursor: pointer; background: #fff;
}
.menu .toggle-btn span { position: absolute; left: 50%; display: block; width: 30px; height: 2px; margin-left: -15px; -webkit-transition: top .3s ease, opacity .2s ease .1s, -webkit-transform .3s ease; transition: top .3s ease, opacity .2s ease .1s, -webkit-transform .3s ease; transition: top .3s ease, transform .3s ease, opacity .2s ease .1s; transition: top .3s ease, transform .3s ease, opacity .2s ease .1s, -webkit-transform .3s ease; background: #555;
}
.menu .toggle-btn span:nth-child(1) { top: 40%; -webkit-transform-origin: center left; transform-origin: center left;
}
.menu .toggle-btn span:nth-child(2) { top: 50%;
}
.menu .toggle-btn span:nth-child(3) { top: 60%; -webkit-transform-origin: center left; transform-origin: center left;
}
.menu .menu-list { width: 0; -webkit-transition: width .4s ease; transition: width .4s ease; background: #fff;
}
.menu .menu-list ul li { font-size: 13px; line-height: 70px; position: relative; display: inline-block; padding: 0 30px; -webkit-transition: opacity .2s ease; transition: opacity .2s ease; opacity: 0;
}
.menu .menu-list ul li:nth-child(1) { -webkit-transition-delay: 0.1s; transition-delay: 0.1s;
}
.menu .menu-list ul li:nth-child(2) { -webkit-transition-delay: 0.15s; transition-delay: 0.15s;
}
.menu .menu-list ul li:nth-child(3) { -webkit-transition-delay: 0.2s; transition-delay: 0.2s;
}
.menu .menu-list ul li:nth-child(4) { -webkit-transition-delay: 0.25s; transition-delay: 0.25s;
}
.menu .menu-list ul li:nth-child(5) { -webkit-transition-delay: 0.3s; transition-delay: 0.3s;
}
.menu .menu-list ul li:before { content: ''; background: #555;
}
.menu .menu-list ul li:after { content: ''; background: #555;
}
.menu .menu-list ul li:hover { cursor: pointer;
}
Opening Menu Concept - Script Codes JS Codes
$(".toggle-btn").on("click", function() { $(".menu").toggleClass("active");
});
Developer | Chung Man Chau |
Username | chungman93 |
Uploaded | January 14, 2023 |
Rating | 3 |
Size | 3,136 Kb |
Views | 6,072 |
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 |
Google Plus Button | 2,743 Kb |
Iphone Mockup | 3,283 Kb |
Delete Hover | 2,557 Kb |
Hovering Snake | 2,895 Kb |
Fixed Background Image - No Repaint | 2,637 Kb |
BBC Beta - Grid | 2,153 Kb |
Grid with Flex Fallback | 1,710 Kb |
Calendar Mock Up | 5,880 Kb |
Hover Underlining | 2,456 Kb |
Rolling Word Hover | 2,541 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 |
Portfolio Landing Page | FDfranklin | 3,585 Kb |
Google Maps API Ground Overlay | Boycetrus | 2,961 Kb |
Wave Lines | Mikehobizal | 4,023 Kb |
React Markdown Previewer | C0d0er | 3,190 Kb |
LAMP PURE CSS with Animation | Dam62500 | 2,911 Kb |
GrcJS | Vino6 | 2,047 Kb |
A Pen by Taylor Vowell | Taylorvowell | 5,962 Kb |
Halo 5 REQ Guide Bookmarklet | Cwacht | 3,993 Kb |
Experiment | Toddmoy | 2,849 Kb |
A bit of elegance | Hackthevoid | 9,095 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!