Cool Hidden Drawer
How do I make an cool hidden drawer?
3d animated hidden drawer that is replacing a dropdown menu on a current project of mine!. What is a cool hidden drawer? How do you make a cool hidden drawer? This script and codes were developed by Matt Litherland on 03 August 2022, Wednesday.
Cool Hidden Drawer - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Cool Hidden Drawer</title> <script src="http://s.codepen.io/assets/libs/modernizr.js" type="text/javascript"></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel='stylesheet prefetch' href='http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css'>
<link rel='stylesheet prefetch' href='css/abdtf.css'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <header class="center"> <a class="open" href="#">Open my drawer!</a>
</header>
<div class="drawer-out"> <div class="drawer"> <div class="container"> <div class="row"> <div class="col-sm-6"> <form role="form"> <legend>Something</legend> <div class="form-group"> <input type="email" class="form-control" placeholder="Enter email"> </div> <div class="form-group"> <input type="password" class="form-control" placeholder="Password"> </div> <button type="submit" class="btn btn-primary">Submit</button> </form> </div> <!-- Social --> <div class="col-sm-6"> <form action=""> <legend>Social</legend> <div class="form-group"> <a href="#" class="zocial-facebook"></a> <a href="#" class="zocial-twitter"></a> <a href="#" class="zocial-googleplus"></a> <a href="#" class="zocial-vimeo"></a> </div> </form> </div> </div> </div> </div>
</div>
<div class="content center"> <div class="container"> <div class="row"> <div class="col-sm-12"> <h1>Cool CSS3 Animated Drawer</h1> <p class="lead">Click on the button above to show the animated drawer</p> </div> </div> </div>
</div>
<footer> <div class="container"> <div class="row"> <div class="col-sm-12">Footer</div> </div> </div>
</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>
Cool Hidden Drawer - Script Codes CSS Codes
*, *:before, *:after { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box;
}
body, html { width: 100%; height: 100%; background: #e0eafd; line-height: 50px; font-size: 14px; color: #92a5bf; text-align: left; font-family: 'Whitney', sans-serif;
}
.center { text-align: center !important;
}
a { margin-top: 0;
}
a:hover { color: white; text-decoration: none;
}
.container { padding: 30px 0; text-align: left;
}
header { float: left; width: 100%; height: 80px; background: #1ba0eb; color: #fff; z-index: 900; padding: 0; text-align: left;
}
header a.open { color: #fff; width: auto; height: auto; font-weight: bold; line-height: 18px; padding: 12px 12px; background: #61bdf1; box-shadow: inset 0px -2px 0px #1395de; border-radius: 5px; text-decoration: none; margin: 18px 0; display: inline-block;
}
.drawer-out { float: left; height: 0px; width: 100%; background: #333; overflow: hidden; position: relative; -webkit-transition: all 0.3s ease-in-out; -moz-transition: all 0.3s ease-in-out; transition: all 0.3s ease-in-out;
}
.drawer-out .drawer { float: left; width: 100%; height: 300px; background: #fff; opacity: 0; -webkit-transform: perspective(250px) rotateX(90deg); transform: perspective(250px) rotateX(90deg); -webkit-transition: all 0.3s ease-in-out; -moz-transition: all 0.3s ease-in-out; transition: all 0.3s ease-in-out;
}
.drawer-out.opencan { height: 300px;
}
.drawer-out.opencan .drawer { opacity: 1; -webkit-transform-style: preserve-3d; -moz-transform-style: preserve-3d; transform-style: preserve-3d; -webkit-transform: scale(1) perspective(1000px) rotateX(0deg); -webkit-animation: out 0.75s ease forwards; -moz-animation: out 0.75s ease forwards; animation: out 0.75s ease forwards;
}
@-webkit-keyframes out { 0% { -webkit-transform: scale(0.8) perspective(1000px) rotateX(90deg); transform: scale(0.8) perspective(1000px) rotateX(90deg); } 100% { -webkit-transform: scale(1) perspective(1000px) rotateX(0deg); transform: scale(1) perspective(1000px) rotateX(0deg); }
}
@-moz-keyframes out { 0% { -moz-transform: scale(0.8) perspective(1000px) rotateX(90deg); } 100% { -moz-transform: scale(1) perspective(1000px) rotateX(0deg); }
}
@keyframes out { 0% { -webkit-transform: scale(0.8) perspective(1000px) rotateX(90deg); transform: scale(0.8) perspective(1000px) rotateX(90deg); } 100% { -webkit-transform: scale(1) perspective(1000px) rotateX(0deg); transform: scale(1) perspective(1000px) rotateX(0deg); }
}
.content { float: left; clear: both; height: 1400px; width: 100%;
}
footer { float: left; clear: both; width: 100%; height: 120px; text-align: center; background: #333;
}
p { font-size: 16px; opacity: 1;
}
Cool Hidden Drawer - Script Codes JS Codes
$("a").click(function (event) { event.preventDefault(); $(".drawer-out").toggleClass("opencan");
});
Developer | Matt Litherland |
Username | mattsince87 |
Uploaded | August 03, 2022 |
Rating | 4.5 |
Size | 4,754 Kb |
Views | 52,624 |
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 |
SVG Firework Animation | 3,306 Kb |
Responsive Flat UI Kit | 17,612 Kb |
Ultimate Pop-Out Menu | 4,264 Kb |
Node Waves | 3,216 Kb |
Share Your Profile | 3,387 Kb |
Smooth Anchor Scrolling | 4,508 Kb |
Animated SVG Path | 3,853 Kb |
Wishlist Toggle Button | 3,774 Kb |
Animated Resposnive SVG Path | 5,339 Kb |
Google Inspired CSS Preloader | 3,008 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 |
Stylize Stories | Jvhti | 2,465 Kb |
Starfield using KineticJS | Asp | 3,512 Kb |
P1 | Vivi_Lai | 1,533 Kb |
Pagepilling.js | Blossk | 6,554 Kb |
Experiment | Toddmoy | 2,849 Kb |
ABVI Menu Discarded | Overdrivemachines | 3,607 Kb |
Fun form with currentColor | Bnthor | 2,713 Kb |
Ball physics | Blackkbot | 3,874 Kb |
Css Rotating 3d cubes different speed | Dghez | 2,364 Kb |
Android Play Store With Slick Carousel | -J0hn- | 4,982 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!