Slide IN/OUT side bar
How do I make an slide in/out side bar?
What is a slide in/out side bar? How do you make a slide in/out side bar? This script and codes were developed by Tommy on 30 December 2022, Friday.
Slide IN/OUT side bar - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Slide IN/OUT side bar</title> <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! */ body { overflow-x: hidden; height: 3000px;
}
#slideout { background: #888; width: 170px; height: 80px; position: fixed; top: 50px; left: -170px;
/* padding-left: 20px
*/}
#slidecontent { float:left;
}
#clickme { height: 60px; width: 15px; position: absolute; top: 0; right: -15px; background: #ddd;
cursor: pointer;
}
#main{
background-color: #aaa;
width: 200px;
height: 300px;
float: left;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div id="slideout"> <div id="slidecontent"> menu comes here </div> <div id="clickme"> ><br/>><br/>> </div>
</div>
<div id="main"></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 IN/OUT side bar - Script Codes CSS Codes
body { overflow-x: hidden; height: 3000px;
}
#slideout { background: #888; width: 170px; height: 80px; position: fixed; top: 50px; left: -170px;
/* padding-left: 20px
*/}
#slidecontent { float:left;
}
#clickme { height: 60px; width: 15px; position: absolute; top: 0; right: -15px; background: #ddd;
cursor: pointer;
}
#main{
background-color: #aaa;
width: 200px;
height: 300px;
float: left;
}
Slide IN/OUT side bar - Script Codes JS Codes
$(function () { $("#clickme").click(function () { if($(this).parent().hasClass("popped")){ $(this).parent().animate({left:'-170px'}, {queue: false, duration: 300}).removeClass("popped"); }else { $(this).parent().animate({left: "0px" }, {queue: false, duration: 300}).addClass("popped"); } });
});
Developer | Tommy |
Username | hoehoe |
Uploaded | December 30, 2022 |
Rating | 3 |
Size | 2,264 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 |
Check box in Bootstrap Drop down list | 2,170 Kb |
Timeline sample | 2,263 Kb |
Star Rates with radio buttons and CSS | 2,650 Kb |
Custom checbox with css | 2,825 Kb |
CSS Sub-orderd list | 1,965 Kb |
Web SQL | 1,983 Kb |
Flex box | 2,171 Kb |
Adding FontAwsome icon via CSS pseudo vs fa class | 2,614 Kb |
Vue with axios sample | 2,991 Kb |
AngularJS | 2,264 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 |
Local Weather App - FreeCodeCamp | TrevorWelch | 4,134 Kb |
SlideDown FixedMenu | Mp_graphic | 5,602 Kb |
A Pen by Kevin | Kevinkenger | 2,642 Kb |
Android Logo with HTML and CSS | Wifi | 2,000 Kb |
A Pen by Jim Savage | Madebyjam | 2,418 Kb |
Welcome | Nakome | 6,076 Kb |
Simple Buttons | Haydenmills | 1,750 Kb |
Pink expansion tunnel | Vez | 1,738 Kb |
IbrahimJabbari-Effect21 | Ibrahimjabbari | 1,882 Kb |
Ripples in water | Nobitagit | 2,704 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!