"nav"
Bootstrap 3.0.0 Snippet by evarevirus

<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <!DOCTYPE html><html class=''> <head><script src='//production-assets.codepen.io/assets/editor/live/console_runner-079c09a0e3b9ff743e39ee2d5637b9216b3545af0de366d4b9aad9dc87e26bfd.js'></script><script src='//production-assets.codepen.io/assets/editor/live/events_runner-73716630c22bbc8cff4bd0f07b135f00a0bdc5d14629260c3ec49e5606f98fdd.js'></script><script src='//production-assets.codepen.io/assets/editor/live/css_live_reload_init-2c0dc5167d60a5af3ee189d570b1835129687ea2a61bee3513dee3a50c115a77.js'></script><meta charset='UTF-8'><meta name="robots" content="noindex"><link rel="shortcut icon" type="image/x-icon" href="//production-assets.codepen.io/assets/favicon/favicon-8ea04875e70c4b0bb41da869e81236e54394d63638a1ef12fa558a4a835f1164.ico" /><link rel="mask-icon" type="" href="//production-assets.codepen.io/assets/favicon/logo-pin-f2d2b6d2c61838f7e76325261b7195c27224080bc099486ddd6dccb469b8e8e6.svg" color="#111" /><link rel="canonical" href="https://codepen.io/abokamal/pen/zvzQyw?depth=everything&order=popularity&page=29&q=pack&show_forks=false" /> <style class="cp-pen-styles">* { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } body { background: #f50; padding: 0; margin: 0 } .nav {color: #FFF} .nav #menu { position: absolute; display: none } .nav #menu:checked + .nav-wrapper { -webkit-transform: translate(0, 0); transform: translate(0, 0); -webkit-transition-delay: 0; transition-delay: 0; } .nav #menu:checked + .nav-wrapper .nav-inner-wrapper ul li a { opacity: 1; -webkit-transform: translate(0, 0); transform: translate(0, 0); -webkit-transition-delay: 0.6s; transition-delay: 0.6s; } .nav #menu:checked + .nav-wrapper .nav-inner-wrapper ul li a:hover { -webkit-transition-delay: 0s; transition-delay: 0s; -webkit-transform: translate(25px, 0); transform: translate(25px, 0); } .nav #menu:checked ~ .triangle span { opacity: 0; } .nav .triangle { cursor: pointer; /* Internet Explorer 10 */ display: -ms-flexbox; -ms-flex-pack: center; -ms-flex-align: center; /* Firefox */ display: -moz-box; -moz-box-pack: center; -moz-box-align: center; /* Safari, Opera, and Chrome */ display: -webkit-box; -webkit-box-pack: center; -webkit-box-align: center; /* W3C */ display: box; box-pack: center; box-align: center; text-transform: uppercase; font-size: 1.5em; z-index: 1000; position: fixed; top: 0; left: 0; width: 100px; height: 100px; } .nav .triangle svg { margin-top: 25px; margin-left: 10px; width: 40px; height: 40px; } .nav .triangle span { float: right; margin-top: 41px; width: 50px; opacity: 1; -webkit-transition: all 0.3s ease-out; transition: all 0.3s ease-out; } .nav .nav-wrapper { padding: 0; background-color: rgba(0, 0, 0, 0.3); height: 100%; width: 200px; z-index: 999; box-sizing: border-box; position: fixed; -webkit-transform: translate(0, -100%); transform: translate(0, -100%); -webkit-transition: all 0.3s ease-out; transition: all 0.3s ease-out; -webkit-transition-delay: 0.3s; transition-delay: 0.3s; } .nav .nav-wrapper .nav-inner-wrapper { padding: 0; height: 100%; width: 200px; overflow-y: auto; } .nav .nav-wrapper .nav-inner-wrapper ul { padding-left: 0; padding-top: 100px; margin: 0; bottom: 0; left: 0; min-height: 100%; width: 200px; } .nav .nav-wrapper .nav-inner-wrapper ul li { margin: 0; list-style: none; text-decoration: none; padding: 10px; } .nav .nav-wrapper .nav-inner-wrapper ul li a { opacity: 0; width: 100%; display: block; color: #FFF; text-transform: uppercase; letter-spacing: 1px; text-decoration: none; -webkit-transform: translate(-100%, 0); transform: translate(-100%, 0); -webkit-transition: all 0.3s ease-out; transition: all 0.3s ease-out; } .nav .nav-wrapper::before { content: " "; z-index: 998; position: absolute; bottom: -200px; left: 0; width: 0; height: 0; border-style: solid; border-width: 200px 200px 0 0; border-color: rgba(0, 0, 0, 0.3) transparent transparent transparent; pointer-events: none; } </style></head><body> <nav class="nav"> <input type="checkbox" name="menu" id="menu"> <div class="nav-wrapper"> <div class="nav-inner-wrapper"> <ul> <li><a href="#">About</a></li> <li><a href="#">Skills</a></li> <li><a href="#">Work</a></li> <li><a href="#">Blog</a></li> <li><a href="#">Contact</a></li> </ul> </div> </div> <label class="triangle" for="menu"> <svg viewbox="0 0 100 100"><polygon fill="#FFF" points="0,100 0,90.1 0,50 0,9.9 0,0 9.9,0 50,40.1 90.1,0 100,0 100,9.9 100,50 100,90.1 100,100 86,100 86,50 86,24 55,55 45,55 14,24 14,50 14,100"> <animate id="to-croix" attributeName="points" begin="indefinite" fill="freeze" dur="500ms" to="0,100 0,90.1 40,50 0,9.9 0,0 9.9,0 50,40.1 90.1,0 100,0 100,9.9 60,50 100,90.1 100,100 90.1,100 50,60 86,24 50,60 50,60 14,24 50,60 9.9,100" /><animate attributeName="points" id="to-m" begin="indefinite" fill="freeze" dur="500ms" to="0,100 0,90.1 0,50 0,9.9 0,0 9.9,0 50,40.1 90.1,0 100,0 100,9.9 100,50 100,90.1 100,100 86,100 86,50 86,24 55,55 45,55 14,24 14,50 14,100" /></polygon></svg><span>enu</span> </label> </nav> <!-- By : Mo7mEd Kamal FaraJalla fb.2bo.kamal --> <script src='//production-assets.codepen.io/assets/common/stopExecutionOnTimeout-b2a7b3fe212eaa732349046d8416e00a9dec26eb7fd347590fbced3ab38af52e.js'></script> <script >(function () { var checked, menu, svgToCroix, svgToM; menu = document.getElementById('menu'); svgToM = document.getElementById('to-m'); svgToCroix = document.getElementById('to-croix'); checked = false; menu.addEventListener('change', function () { checked = !checked; if (checked) { return svgToCroix.beginElement(); } else { return svgToM.beginElement(); } }); }.call(this)); //# sourceURL=pen.js </script> </body></html>

Related: See More


Questions / Comments: