Slide IN/OUT Side Menu

Developer
Size
2,900 Kb
Views
4,048

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 Previews

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>&copy;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");
});
Slide IN/OUT Side Menu - Script Codes
Slide IN/OUT Side Menu - Script Codes
Home Page Home
Developer Tommy
Username hoehoe
Uploaded December 30, 2022
Rating 3
Size 2,900 Kb
Views 4,048
Do you need developer help for Slide IN/OUT Side Menu?

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!

Tommy (hoehoe) Script Codes
Create amazing love letters with AI!

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!