Off Canvas in SASS
How do I make an off canvas in sass?
A pure Off Canvas menu in SASS, without js. What is a off canvas in sass? How do you make a off canvas in sass? This script and codes were developed by Lorenzo D'Ianni on 29 September 2022, Thursday.
Off Canvas in SASS - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Off Canvas in SASS</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <header class="header"> <div class="container"> <input type="radio" class="trigger" id="is-visible" name="visibile"> <label class="trigger--show" for="is-visible"></label> <input type="radio" class="trigger" id="is-hidden" name="visibile"> <label class="trigger--hide" for="is-hidden"></label> <h1 class="title">Sidebar in pure css</h1> <nav class="menu"> <a class="menu-link" href="#!">Home</a> <a class="menu-link" href="#!">Works</a> <a class="menu-link" href="#!">About</a> <a class="menu-link" href="#!">Contact</a> </nav> </div>
</header>
<div class="info">Resize me!</div>
</body>
</html>
Off Canvas in SASS - Script Codes CSS Codes
@charset "UTF-8";
@import url(https://fonts.googleapis.com/css?family=Roboto:400,500);
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video { margin: 0; padding: 0; border: 0; font: inherit; font-size: 100%; vertical-align: baseline;
}
html { line-height: 1;
}
ol, ul { list-style: none;
}
table { border-collapse: collapse; border-spacing: 0;
}
caption, th, td { text-align: left; font-weight: normal; vertical-align: middle;
}
q, blockquote { quotes: none;
}
q:before, q:after, blockquote:before, blockquote:after { content: ""; content: none;
}
a img { border: none;
}
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, summary { display: block;
}
* { box-sizing: border-box; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
html, body { height: 100%; min-height: 100%; font: 400 14px/100% 'Roboto', sans-serif; color: rgba(0, 0, 0, 0.87);
}
.container { width: 100%; max-width: 1024px; margin: 0 auto;
}
.header { position: relative; color: white; padding: 16px 48px; background-color: #2196F3; border-top: 4px solid #0b75c9; overflow: hidden; *zoom: 1;
}
.title { font-size: 24px; font-weight: 400; text-align: center;
}
.menu { position: fixed; top: 0; left: 0; width: 80%; height: 100%; background-color: white; -webkit-transform: translate(-100%, 0); transform: translate(-100%, 0); box-shadow: 0 3px 5px -1px rgba(0, 0, 0, 0.14), 0 6px 10px 0 rgba(0, 0, 0, 0.098), 0 1px 18px 0 rgba(0, 0, 0, 0.084); -webkit-transition: all 0.3s ease; transition: all 0.3s ease;
}
.menu-link { display: block; text-align: left; padding: 16px; color: rgba(0, 0, 0, 0.87); font-weight: 500; text-decoration: none; border-bottom: 1px solid #eee; -webkit-transition: all 0.3s ease; transition: all 0.3s ease;
}
.menu-link:hover { background-color: rgba(0, 0, 0, 0.02);
}
.trigger { display: none;
}
.trigger#is-visible:checked ~ .trigger--hide { display: block;
}
.trigger#is-visible:checked ~ .menu { -webkit-transform: translate(0%, 0); transform: translate(0%, 0);
}
.trigger#is-hidden:checked ~ .trigger--hide { display: none;
}
.trigger--show { display: block; position: absolute; top: 50%; left: 16px; width: 24px; height: 24px; cursor: pointer; -webkit-transform: translateY(-50%); transform: translateY(-50%);
}
.trigger--show:active:before, .trigger--show:focus:before { opacity: 1;
}
.trigger--show:before, .trigger--show:after { content: ""; display: block; position: absolute; top: 50%; left: 50%; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%);
}
.trigger--show:before { z-index: 10; opacity: 0; width: 150%; height: 150%; background-color: rgba(255, 255, 255, 0.35); border-radius: 50%; -webkit-transition: all 0.3s ease; transition: all 0.3s ease;
}
.trigger--show:after { width: 24px; height: 24px; background: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjEiIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMjRweCIgaGVpZ2h0PSIyNHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDI0IDI0IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPGcgaWQ9IkhlYWRlciI+CiAgICA8Zz4KICAgICAgICA8cmVjdCB4PSItNjE4IiB5PSItMjIzMiIgZmlsbD0ibm9uZSIgd2lkdGg9IjE0MDAiIGhlaWdodD0iMzYwMCIvPgogICAgPC9nPgo8L2c+CjxnIGlkPSJMYWJlbCI+CjwvZz4KPGcgaWQ9Ikljb24iPgogICAgPGc+CiAgICAgICAgPHJlY3QgZmlsbD0ibm9uZSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ii8+CiAgICAgICAgPHBhdGggZD0iTTMsMThoMTh2LTJIM1YxOHogTTMsMTNoMTh2LTJIM1YxM3ogTTMsNnYyaDE4VjZIM3oiIHN0eWxlPSJmaWxsOiNmM2YzZjM7Ii8+CiAgICA8L2c+CjwvZz4KPGcgaWQ9IkdyaWQiIGRpc3BsYXk9Im5vbmUiPgogICAgPGcgZGlzcGxheT0iaW5saW5lIj4KICAgIDwvZz4KPC9nPgo8L3N2Zz4="); background-size: 24px;
}
.trigger--hide { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.75);
}
.info { display: none;
}
/*–––––––––––––––––––––––––––––––––*/
@media only screen and (min-width: 768px) { .title { float: left; font-size: 32px; text-align: left; line-height: 28px; } .menu { float: right; position: initial; width: initial; height: initial; top: initial; left: initial; background-color: transparent; box-shadow: none; -webkit-transform: translate(0, 0); transform: translate(0, 0); } .menu-link { display: inline-block; vertical-align: top; margin: 0 4px; color: white; padding: 8px 12px; border-bottom: none; border-radius: 2px; -webkit-transition: all 0.3s ease; transition: all 0.3s ease; } .menu-link:hover { color: #2196F3; background-color: white; box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.14), 0 2px 2px 0 rgba(0, 0, 0, 0.098), 0 1px 5px 0 rgba(0, 0, 0, 0.084); } .trigger--show, .trigger--hide { display: none !important; } .info { display: inline-block; width: 100%; padding: 40px; font-size: 32px; text-align: center; color: #0b75c9; }
}
Developer | Lorenzo D'Ianni |
Username | lorenzodianni |
Uploaded | September 29, 2022 |
Rating | 3 |
Size | 5,680 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 |
Ng-barcode | 2,888 Kb |
AngularJS - Controller As | 5,584 Kb |
Material Design - Button in pure CSS | 3,923 Kb |
Material Design - Switch | 3,282 Kb |
Material Design - Animations | 9,001 Kb |
Smooth Scroll | 3,561 Kb |
Off Canvas in SASS | 5,680 Kb |
Checkbox Style - SCSS | 5,095 Kb |
SidebarJS | 3,666 Kb |
Ng-circle | 3,355 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 |
CSS3 Diamond | Rendro | 1,960 Kb |
Basic HTML5 Structure | YuvarajTana | 1,289 Kb |
Super Discount | Orrinward | 3,225 Kb |
Retina canvas w. resize | Erikterwan | 1,882 Kb |
Scrolling Horizontal Isotope | Bramus | 2,017 Kb |
Kut D3 | Jellevrswk | 3,687 Kb |
SVG Animation | Pollardld | 3,133 Kb |
Simple blog concept | Drew_mc | 2,666 Kb |
My Interests | Anshusaxenaarora | 2,015 Kb |
Z-index demo | Kblh | 1,534 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!