Off Canvas
How do I make an off canvas?
What is a off canvas? How do you make a off canvas? This script and codes were developed by Maria Marica on 26 October 2022, Wednesday.
Off Canvas - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Off Canvas</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <nav id="drawer" class="green"></nav>
<main class="blue"></main> <script src="js/index.js"></script>
</body>
</html>
Off Canvas - Script Codes CSS Codes
html, body, main {width: 100%; height:100%;}
.blue { background: #4682B4;
}
.green { background: #2E8B57;
}
nav{width: 300px; height:100%; position: absolute; -webkit-transform: translate(-300px, 0); transform: translate(-300px, 0); transform: translate(-300px, 0); transition:transform 0.3s ease;}
nav.open {-webkit-transform: translate(0, 0); transform: translate(0.0);}
@media screen and (min-width:600px) { nav{position:relative; transform:translate (0,0); } body {display:flex; flex-flow: row nowrap; } main{width: auto; flex-grow:1;}
}
Off Canvas - Script Codes JS Codes
menu.addEventListener('click', function(e) { drawer.classList.toggle('open'); e.stopPropagation();
});
Developer | Maria Marica |
Username | mariamarica |
Uploaded | October 26, 2022 |
Rating | 3 |
Size | 1,870 Kb |
Views | 14,168 |
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 |
Tribute page | 3,201 Kb |
Column Drop | 1,610 Kb |
Calculator | 3,372 Kb |
Project lalala | 2,465 Kb |
Mostly Fluid | 1,661 Kb |
Portfolio | 4,158 Kb |
Dropdown navbR | 2,012 Kb |
A Pen by Maria Marica | 1,422 Kb |
Dr. Love | 2,853 Kb |
Quote gen | 3,270 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 |
Collapsing Widget | Er40 | 4,279 Kb |
Fluid Responsive Typography | Jonmilner | 4,205 Kb |
Cartoon Bomb | Tcmulder | 4,929 Kb |
Dice | Fraina | 5,026 Kb |
Pictos font library from CodePen | Jstam | 3,790 Kb |
CSS- UI Element States Pseudo-Classes | Tesla809 | 2,206 Kb |
Resume | Rottingroom | 5,483 Kb |
Wave Lines | Mikehobizal | 4,023 Kb |
Very Simple Slider | Doodlemarks | 2,682 Kb |
Christ the Redeemer | Prashantsani | 2,208 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!