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 |
AngularJS | 2,264 Kb |
Adding FontAwsome icon via CSS pseudo vs fa class | 2,614 Kb |
Custom checbox with css | 2,825 Kb |
Parallax with only css | 3,096 Kb |
Web SQL | 1,983 Kb |
Flex box | 2,171 Kb |
Vue with axios sample | 2,991 Kb |
A Pen by Tommy | 1,738 Kb |
Timeline with CSS | 2,552 Kb |
CSS animation | 2,194 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 |
Transitioning application screens with semantically named classes | Djgrant | 3,697 Kb |
Portfolio page | Bhavya_j | 2,804 Kb |
Material Design-Layout-Principles Practice | Fraina | 2,331 Kb |
Button Option Group | Honchoman | 1,859 Kb |
Multiple jCarousel | Pafnuty | 2,461 Kb |
Under construction | GhostRider | 1,642 Kb |
Drifting Clouds | Benedikte | 2,247 Kb |
Cloud upload | Jaflo | 2,774 Kb |
Next Word Predictor | Rfalor | 2,776 Kb |
Drag and Drop Quiz | Cgspicer | 3,837 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!