Slide IN/OUT side bar

Developer
Size
2,264 Kb
Views
4,048

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 Previews

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

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 blog posts 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!