Slide Out Menu
How do I make an slide out menu?
What is a slide out menu? How do you make a slide out menu? This script and codes were developed by Michael Chernin on 19 January 2023, Thursday.
Slide Out Menu - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Slide Out Menu</title> <script src="https://s.codepen.io/assets/libs/modernizr.js" type="text/javascript"></script>
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <header> <h1 class="site-title">Site Name</h1> <i class="fa fa-bars nav-toggle"></i> <nav class="main-navigation"> <span class="nav-toggle">Close</span> <ul> <li><a href="#">Home</a></li> <li><a href="#">About</a></li> <li><a href="#">Clients</a></li> <li><a href="#">Contact Us</a></li> </ul> </nav>
</header>
<main> <h2>Hello</h2> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eius, nobis quaerat. In temporibus, obcaecati fugiat vitae. Sapiente reiciendis in cupiditate minima, reprehenderit iste adipisci! Voluptatum, ab sed. Hic molestias, ullam sint, eius sed obcaecati perferendis voluptates provident dicta aut fugit est, minus. Aspernatur et nisi quo, tempora hic quisquam, cumque?</p> <p> Lorem ipsum dolor sit amet, consectetur adipisicing elit. Molestiae ad voluptatem quisquam id accusantium iste fugit tempora quam ut repellat, voluptate distinctio labore sint est provident dignissimos cum nesciunt perspiciatis nostrum alias dolorem illum harum quo. Quibusdam, nesciunt. Commodi reiciendis veritatis est consectetur distinctio iusto suscipit, voluptate amet unde porro? </p>
</main> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Slide Out Menu - Script Codes CSS Codes
header { background: #333; color: #fff; padding: 20px; position: relative;
}
.site-title { margin-left: 100px; font-size: 1rem;
}
.nav-toggle { position: absolute; top: 30px; cursor: pointer;
}
a { color: #fff; text-decoration: none;
}
nav li { list-style: none;
}
.main-navigation { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #222; text-align: center; -webkit-transform: translateX(-100%); transform: translateX(-100%); -webkit-transition: -webkit-transform 0.6s ease; transition: -webkit-transform 0.6s ease; transition: transform 0.6s ease; transition: transform 0.6s ease, -webkit-transform 0.6s ease;
}
.main-navigation.open { -webkit-transform: translateX(0); transform: translateX(0);
}
.main-navigation .nav-toggle { right: 5%; top: 5%;
}
.main-navigation ul { margin: 0; padding: 0;
}
.main-navigation ul a { padding: 10px 20px; display: block;
}
.main-navigation ul a:hover { background: #333;
}
Slide Out Menu - Script Codes JS Codes
$(function() { $('.nav-toggle').on('click', function() { $('.main-navigation').toggleClass('open'); });
});
Developer | Michael Chernin |
Username | mchernin34 |
Uploaded | January 19, 2023 |
Rating | 3 |
Size | 2,584 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 |
Icon Grid | 3,040 Kb |
Starter Portfolio | 2,235 Kb |
Popover Navigation | 3,811 Kb |
Change background color based on mouse location | 2,046 Kb |
Mostly Fluid | 1,679 Kb |
Column Drop | 1,602 Kb |
Image grid with captions | 2,222 Kb |
A Pen by Michael Chernin | 10,496 Kb |
Icon List | 1,701 Kb |
Animated card | 1,729 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 |
Dragonball Dragon Radar | DouglasGlover | 2,157 Kb |
Google Fonts Sass Mixin | HugoGiraudel | 4,237 Kb |
Wikipedia Viewer | Odylic | 2,333 Kb |
Donut Chart example - MorrisJS | Capelo | 2,385 Kb |
Slider css only | Armandobau | 2,161 Kb |
Flat UI - Checkbox FIX | ARS | 2,663 Kb |
Plotting Points with D3.js | Laurakelly | 31,996 Kb |
Dribbble Inspired Registration Form | Lancebush | 2,358 Kb |
Find The Penguin | Lelder | 2,212 Kb |
Simple CSS loader. | Cabrera | 2,574 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!