Slide IN/OUT Side Menu
How do I make an slide in/out side menu?
What is a slide in/out side menu? How do you make a slide in/out side menu? This script and codes were developed by Tommy on 30 December 2022, Friday.
Slide IN/OUT Side Menu - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Slide IN/OUT Side Menu</title> <link href="https://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
<link rel="stylesheet" href="https://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.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! */ *{ -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; margin: 0; padding: 0;
}
a{ background: #11ACFF; color: #fff; padding: 5px; cursor: pointer; opacity: .8; transition: all .2s; margin: 10px 10px 0;
}
a:hover{ text-decoration: none; opacity: 1;
}
#userName{ margin-left: 110px;
}
.header{ margin-bottom: 10px; position: fixed; z-index: 1000; width: 500px; background: #eee url() 0 0 no-repeat; padding: 5px;
}
.side{ position: relative; float: left; width: 100px; height: 500px; background: #555; margin-right: -100px; padding: 4px; color: #eee; margin-top: 60px;
}
.main{ margin-top: 60px; float: left; border: 1px solid #333; width: 500px; height: 510px; padding-left: 110px;
}
.contents{ width: 380px; height: 450px; background: #ddd; padding: 4px;
}
.collapseSide{ display: none;
}
.collapseMain{ padding-left: 0px;
}
.collapseContents{ width: 490px;
}
footer{ clear: both; width: 500px; text-align: center;
}
.arrow-down { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 5px solid #999; position: absolute; top: 25px; right: 10px;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div class="header"> <a id="menuBtn" class="fa fa-bars"></a> <input type="text" /> <a class="fa fa-search"></a> <a class="fa fa-cog"></a> <span id="userName">John Doe</span> <span class="arrow-down"></span>
</div>
<div class="side">side</div>
<div class="main"> <div class="contents">contents</div>
</div>
<footer>©2014 SmartBiz 0.0.0.0</footer> <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 IN/OUT Side Menu - Script Codes CSS Codes
*{ -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; margin: 0; padding: 0;
}
a{ background: #11ACFF; color: #fff; padding: 5px; cursor: pointer; opacity: .8; transition: all .2s; margin: 10px 10px 0;
}
a:hover{ text-decoration: none; opacity: 1;
}
#userName{ margin-left: 110px;
}
.header{ margin-bottom: 10px; position: fixed; z-index: 1000; width: 500px; background: #eee url() 0 0 no-repeat; padding: 5px;
}
.side{ position: relative; float: left; width: 100px; height: 500px; background: #555; margin-right: -100px; padding: 4px; color: #eee; margin-top: 60px;
}
.main{ margin-top: 60px; float: left; border: 1px solid #333; width: 500px; height: 510px; padding-left: 110px;
}
.contents{ width: 380px; height: 450px; background: #ddd; padding: 4px;
}
.collapseSide{ display: none;
}
.collapseMain{ padding-left: 0px;
}
.collapseContents{ width: 490px;
}
footer{ clear: both; width: 500px; text-align: center;
}
.arrow-down { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 5px solid #999; position: absolute; top: 25px; right: 10px;
}
Slide IN/OUT Side Menu - Script Codes JS Codes
$("#menuBtn").click(function(){ $(".side").toggleClass("collapseSide"); $(".main").toggleClass("collapseMain"); $(".contents").toggleClass("collapseContents");
});
Developer | Tommy |
Username | hoehoe |
Uploaded | December 30, 2022 |
Rating | 3 |
Size | 2,900 Kb |
Views | 4,048 |
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 |
CSS animation | 2,194 Kb |
Star Rates with radio buttons and CSS | 2,650 Kb |
Get Form value with jQuery | 1,931 Kb |
Flex box | 2,171 Kb |
Check box in Bootstrap Drop down list | 2,170 Kb |
Web SQL | 1,983 Kb |
Timeline sample | 2,263 Kb |
Timeline with CSS | 2,552 Kb |
CSS Sub-orderd list | 1,965 Kb |
Adding FontAwsome icon via CSS pseudo vs fa class | 2,614 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 |
CSS Link Zoom On Click | Bryce | 1,960 Kb |
Calculator - codevember 08 - 2016 | Caiocares | 3,260 Kb |
JQuery Viewport Size | Jeffpannone | 2,317 Kb |
Whyutils | LeYvan | 3,752 Kb |
3D Text in Sass | Bookcasey | 2,766 Kb |
CSS Variables | Jdsteinbach | 4,759 Kb |
Weird glowy CSS3 game | Toneworm | 3,684 Kb |
MAD9013 - Float Images with Content | Mad-d | 2,220 Kb |
SnappySnippet Test | Elmsoftware | 8,385 Kb |
AngularJS Datalist Directive | M-e-conroy | 2,366 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!