Slide Menu
How do I make an slide menu?
Slide Menu like it is used in some apps. JS by MyXoToD (http://codepen.io/MyXoToD). What is a slide menu? How do you make a slide menu? This script and codes were developed by Kevin Gimbel on 11 August 2022, Thursday.
Slide Menu - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Slide Menu</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="app"> <aside class="app-sidebar" id="app-sidebar"> <nav class="app-menu"> <li>Side Menu</li> <li><a href="" class="menu-item">Lorem</a></li> <li><a href="" class="menu-item">Ipsum</a></li> <li><a href="" class="menu-item">Dolor</a></li> </nav> </aside> <section class="app-body" id="app-body"> <header class="app-header"> <a href="#" class="menu-trigger" id="menu-trigger">MENU</a> <h1 class="app-header--app-name">Awesome Web App</h1> </header> <div class="app-content"> <h1>Sample App Content</h1> <p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.</p> </div> </section>
</div> <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 Menu - Script Codes CSS Codes
@import url(http://fonts.googleapis.com/css?family=Roboto+Condensed:300,700);
* { margin: 0; pdding: 0; position: relative; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
}
body { font-family: "Roboto Condensed",sans-serif;
}
a { text-decoration: none;
}
.app { width: 700px; position: absolute; left: -200px; top: 0;
}
.app-sidebar { width: 200px; height: 500px; float: left; background: #2B2B2B; color: #fff;
}
.app-sidebar li { list-style-type: none; padding: 5px 20px;
}
.app-sidebar a { color: #C8DF17;
}
.app-sidebar a:hover { color: #fff;
}
.app-body { width: 500px; height: 500px; float: right; background: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCIgeDE9IjAuNSIgeTE9IjAuMCIgeDI9IjAuNSIgeTI9IjEuMCI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2YxZjFmMSIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iI2QzZDNkMyIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JhZCkiIC8+PC9zdmc+IA=='); background: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #f1f1f1), color-stop(100%, #d3d3d3)); background: -moz-linear-gradient(#f1f1f1, #d3d3d3); background: -webkit-linear-gradient(#f1f1f1, #d3d3d3); background: linear-gradient(#f1f1f1, #d3d3d3);
}
.app-content { width: 90%; margin: 0px auto;
}
.app-header { width: 100%; height: 50px; background: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCIgeDE9IjAuNSIgeTE9IjAuMCIgeDI9IjAuNSIgeTI9IjEuMCI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2QzZDNkMyIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iI2YxZjFmMSIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JhZCkiIC8+PC9zdmc+IA=='); background: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #d3d3d3), color-stop(100%, #f1f1f1)); background: -moz-linear-gradient(#d3d3d3, #f1f1f1); background: -webkit-linear-gradient(#d3d3d3, #f1f1f1); background: linear-gradient(#d3d3d3, #f1f1f1); padding: 10px 0;
}
.menu-trigger { position: absolute; top: 10px; left: 10px; -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; background: #C8DF17; padding: 5px 20px; color: #2B2B2B; z-index: 9999;
}
.app-header--app-name { text-align: center;
}
Slide Menu - Script Codes JS Codes
$(document).ready(function() {
var state = true;
$('#menu-trigger').click(function() {
$("#app-sidebar,#app-body").animate({
left: (state) ? "+=200px" : "-=200px",
easing: "easeout"
}, 400);
if (state) {
state = false;
} else {
state = true;
}
});
});
Developer | Kevin Gimbel |
Username | kevingimbel |
Uploaded | August 11, 2022 |
Rating | 3 |
Size | 3,725 Kb |
Views | 46,552 |
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 |
CSS3 only Vault-Tec Logo | 3,855 Kb |
Custom Rating buttons with Icon Fonts | 5,022 Kb |
Alternative Image Classes in Markdown | 6,385 Kb |
Blurring Content when Dialog triggers | 5,054 Kb |
CSS Pre-Block Overflow example | 2,482 Kb |
.LANG | 3,709 Kb |
CSS3 only Turret from Portal | 3,910 Kb |
An Object-Oriented ToDo-List | 5,275 Kb |
Pinterest Thumb | 5,308 Kb |
Felixble Product Flags | 5,907 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 |
Vertically rotating text with CSS | Nopr | 2,141 Kb |
Css or Czz.. | Judag | 4,111 Kb |
ABVI Menu Discarded | Overdrivemachines | 3,607 Kb |
Pomodoro Clock | Osycon | 3,705 Kb |
Update CSS Variables with JS | Wesbos | 2,335 Kb |
Mandelbrot Fractal | _Billy_Brown | 2,706 Kb |
Compare resources on mobile sites | Gyusza | 3,226 Kb |
Animated Slide Hamburger Mobile Menu | BJack | 2,247 Kb |
Placeholder support for contentEditable elements, without JavaScript | Flesler | 1,863 Kb |
Stylize Stories | Jvhti | 2,465 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!