Angled Menu
How do I make an angled menu?
What is a angled menu? How do you make a angled menu? This script and codes were developed by Keith Light on 18 November 2022, Friday.
Angled Menu - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Angled Menu</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ @import url(https://fonts.googleapis.com/css?family=Lato:400);
* { box-sizing: border-box;
}
html { font-size: 62.5%;
}
body { background: url(https://images.unsplash.com/photo-1444927714506-8492d94b4e3d?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&s=067f0b097deff88a789e125210406ffe) center center no-repeat; background-size: cover; color: #fff; font-family: "Lato", sans-serif; font-size: 2.4rem; height: 100vh;
}
.navigation-menu__bars, .navigation-menu__bars::before, .navigation-menu__bars::after { cursor: pointer; border-radius: 1px; height: 2px; width: 25px; background: #fff; position: absolute; left: 0; top: 50%; display: block; transition: all .3s;
}
.navigation-menu { background-color: transparent; height: 100%; position: fixed; width: 600px; transform: translateX(-100%); transition: transform .3s .3s;
}
.navigation-menu::before { background: #4E567E; content: ''; height: 400%; left: 50%; position: absolute; top: 0; transform: translate(-50%, -50%) rotate(40deg); width: 100%; z-index: 0;
}
.navigation-menu--open { transform: translateX(0);
}
.navigation-menu--open .navigation-menu__bars { background-color: transparent;
}
.navigation-menu--open .navigation-menu__bars::before, .navigation-menu--open .navigation-menu__bars::after { top: 0;
}
.navigation-menu--open .navigation-menu__bars::before { transform: rotate(45deg);
}
.navigation-menu--open .navigation-menu__bars::after { transform: rotate(-45deg);
}
.navigation-menu--open .menu-list__item { opacity: 1;
}
.navigation-menu--open .menu-list__item:nth-child(1) { transition-delay: 1s;
}
.navigation-menu--open .menu-list__item:nth-child(2) { transition-delay: 1.25s;
}
.navigation-menu--open .menu-list__item:nth-child(3) { transition-delay: 1.5s;
}
.navigation-menu--open .menu-list__item:nth-child(4) { transition-delay: 1.75s;
}
.navigation-menu--open .menu-list__item:nth-child(5) { transition-delay: 2s;
}
.navigation-menu--open .menu-list__item:nth-child(6) { transition-delay: 2.25s;
}
.navigation-menu--open .menu-list__item:nth-child(7) { transition-delay: 2.5s;
}
.navigation-menu--open .menu-list__item:nth-child(8) { transition-delay: 2.75s;
}
.navigation-menu--open .menu-list__item:nth-child(9) { transition-delay: 3s;
}
.navigation-menu--open .menu-list__item:nth-child(10) { transition-delay: 3.25s;
}
.navigation-menu--open .menu-list__item:nth-child(11) { transition-delay: 3.5s;
}
.navigation-menu--open .menu-list__item:nth-child(12) { transition-delay: 3.75s;
}
.navigation-menu__toggle { cursor: pointer; height: 30px; position: absolute; right: -40px; top: 5px; width: 30px;
}
.navigation-menu__bars::before, .navigation-menu__bars::after { content: '';
}
.navigation-menu__bars::before { left: 0; top: -8px;
}
.navigation-menu__bars::after { left: 0; top: 8px;
}
.menu-list { padding: 60px 20px; position: relative; z-index: 10;
}
.menu-list__item { margin: 40px 0; opacity: 0; transition: opacity .5s .5s;
}
@media only screen and (max-width: 700px) { .navigation-menu { min-width: 240px; width: 80%; } .navigation-menu::before { width: 110%; }
}
@media only screen and (max-width: 480px) { .navigation-menu { background-color: #4E567E; min-width: 240px; width: 80%; } .navigation-menu::before { transform: translate(-50%, -50%) rotate(45deg); }
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <nav class="navigation-menu js-nav-menu"> <div class="navigation-menu__toggle js-nav-menu-toggle"> <span class="navigation-menu__bars"></span> </div> <ul class="menu-list"> <li class="menu-list__item">Menu Item 1</li> <li class="menu-list__item">Menu Item 2</li> <li class="menu-list__item">Menu Item 3</li> <li class="menu-list__item">Menu Item 4</li> <li class="menu-list__item">Menu Item 5</li> </ul>
</nav> <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.0/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Angled Menu - Script Codes CSS Codes
@import url(https://fonts.googleapis.com/css?family=Lato:400);
* { box-sizing: border-box;
}
html { font-size: 62.5%;
}
body { background: url(https://images.unsplash.com/photo-1444927714506-8492d94b4e3d?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&s=067f0b097deff88a789e125210406ffe) center center no-repeat; background-size: cover; color: #fff; font-family: "Lato", sans-serif; font-size: 2.4rem; height: 100vh;
}
.navigation-menu__bars, .navigation-menu__bars::before, .navigation-menu__bars::after { cursor: pointer; border-radius: 1px; height: 2px; width: 25px; background: #fff; position: absolute; left: 0; top: 50%; display: block; transition: all .3s;
}
.navigation-menu { background-color: transparent; height: 100%; position: fixed; width: 600px; transform: translateX(-100%); transition: transform .3s .3s;
}
.navigation-menu::before { background: #4E567E; content: ''; height: 400%; left: 50%; position: absolute; top: 0; transform: translate(-50%, -50%) rotate(40deg); width: 100%; z-index: 0;
}
.navigation-menu--open { transform: translateX(0);
}
.navigation-menu--open .navigation-menu__bars { background-color: transparent;
}
.navigation-menu--open .navigation-menu__bars::before, .navigation-menu--open .navigation-menu__bars::after { top: 0;
}
.navigation-menu--open .navigation-menu__bars::before { transform: rotate(45deg);
}
.navigation-menu--open .navigation-menu__bars::after { transform: rotate(-45deg);
}
.navigation-menu--open .menu-list__item { opacity: 1;
}
.navigation-menu--open .menu-list__item:nth-child(1) { transition-delay: 1s;
}
.navigation-menu--open .menu-list__item:nth-child(2) { transition-delay: 1.25s;
}
.navigation-menu--open .menu-list__item:nth-child(3) { transition-delay: 1.5s;
}
.navigation-menu--open .menu-list__item:nth-child(4) { transition-delay: 1.75s;
}
.navigation-menu--open .menu-list__item:nth-child(5) { transition-delay: 2s;
}
.navigation-menu--open .menu-list__item:nth-child(6) { transition-delay: 2.25s;
}
.navigation-menu--open .menu-list__item:nth-child(7) { transition-delay: 2.5s;
}
.navigation-menu--open .menu-list__item:nth-child(8) { transition-delay: 2.75s;
}
.navigation-menu--open .menu-list__item:nth-child(9) { transition-delay: 3s;
}
.navigation-menu--open .menu-list__item:nth-child(10) { transition-delay: 3.25s;
}
.navigation-menu--open .menu-list__item:nth-child(11) { transition-delay: 3.5s;
}
.navigation-menu--open .menu-list__item:nth-child(12) { transition-delay: 3.75s;
}
.navigation-menu__toggle { cursor: pointer; height: 30px; position: absolute; right: -40px; top: 5px; width: 30px;
}
.navigation-menu__bars::before, .navigation-menu__bars::after { content: '';
}
.navigation-menu__bars::before { left: 0; top: -8px;
}
.navigation-menu__bars::after { left: 0; top: 8px;
}
.menu-list { padding: 60px 20px; position: relative; z-index: 10;
}
.menu-list__item { margin: 40px 0; opacity: 0; transition: opacity .5s .5s;
}
@media only screen and (max-width: 700px) { .navigation-menu { min-width: 240px; width: 80%; } .navigation-menu::before { width: 110%; }
}
@media only screen and (max-width: 480px) { .navigation-menu { background-color: #4E567E; min-width: 240px; width: 80%; } .navigation-menu::before { transform: translate(-50%, -50%) rotate(45deg); }
}
Angled Menu - Script Codes JS Codes
(function($) { $('.js-nav-menu-toggle').on('click', function() { $(this).parents('.navigation-menu').toggleClass('navigation-menu--open'); }); $('html').on('click', function(e) { if(!$(e.target).closest('.js-nav-menu').length && ($('.js-nav-menu').hasClass('navigation-menu--open'))) { $('.js-nav-menu').removeClass('navigation-menu--open'); } });
})(jQuery);
Developer | Keith Light |
Username | keefyboooo |
Uploaded | November 18, 2022 |
Rating | 3 |
Size | 4,762 Kb |
Views | 26,312 |
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 |
Overlay Menu Concept | 4,431 Kb |
DevWars Weekly Challenge Week 8 | 7,605 Kb |
Material Design Colour Palette | 14,903 Kb |
SlideToggle Menu | 3,904 Kb |
Rainbow Text | 1,853 Kb |
Skills Display, using jQuery | 4,084 Kb |
Off Canvas Pop Out Menu | 4,027 Kb |
Animated Burger Menu | 2,753 Kb |
Mobile Menu Concept | 6,725 Kb |
CSS Pseudo Element Hover Effects | 4,029 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 |
Greyscale image with filter in CSS3 | NickyCDK | 1,562 Kb |
Angular Route | Arun_v606 | 1,837 Kb |
Faces SVG animation | ScavengerFrontend | 2,957 Kb |
Simple blog concept | Drew_mc | 2,666 Kb |
CSS Bot Confusion | Jpod | 3,456 Kb |
Minimelephant | Smashlee | 2,507 Kb |
CSS Org Chart | Appirio-ux | 3,882 Kb |
Basic jQuery Filter list | Mtedwards | 2,464 Kb |
Testing Portfolio Page | Sideshowli | 3,395 Kb |
Pure CSS Tooltips | Mobius1 | 2,271 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!