"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 lang='en' 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/mblode/pen/EGKCu?limit=all&page=62&q=media" /> <script src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js" type="text/javascript"></script> <link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css'><link rel='stylesheet prefetch' href='https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css'> <style class="cp-pen-styles">body { background-color: #efefef; font-family: 'Roboto', sans-serif; color: rgba(0, 0, 0, 0.87); position: relative; padding: 0; margin: 0; } nav { width: 100%; max-height: 100px; background-color: white; -webkit-transition-duration: 0.5s; transition-duration: 0.5s; -webkit-transition-timing-function: swing; transition-timing-function: swing; position: relative; overflow: hidden; -webkit-box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1), 0px 4px 8px rgba(0, 0, 0, 0.1); box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1), 0px 4px 8px rgba(0, 0, 0, 0.1); } nav.open { max-height: 700px; -webkit-transition: max-height 0.5s ease-in; transition: max-height 0.5s ease-in; } nav h2 { -webkit-transition: 0.5s; transition: 0.5s; position: absolute; font-size: 1.75em; top: 15px; right: 32px; font-weight: 300; } nav h2 b { font-weight: 500; } @media (max-width: 768px) { nav h2 { font-size: 1.5em; top: 16px; } nav h2 span { display: none; } } nav ul { padding-top: 100px; } nav ul li { list-style: none; padding: 1em 2em 1em 1.5em; -webkit-transition: all 0.5s; transition: all 0.5s; } nav ul li a { display: inline-block; text-decoration: none; font-size: 1.1em; color: rgba(0, 0, 0, 0.87); } nav ul li:hover { background: #b3e5fc; } nav ul li:hover a { text-decoration: none; } nav ul li:active { background: #82d4fa; } nav ul li:last-child { margin-bottom: 1em; } .navToggle { position: absolute; width: 30px; height: 60px; top: 20px; left: 32px; -webkit-transition-duration: 0.5s; transition-duration: 0.5s; } .navToggle:hover { cursor: pointer; } .navToggle .icon-left { -webkit-transition-duration: 0.5s; transition-duration: 0.5s; position: absolute; height: 4px; top: 25px; width: 15px; background-color: rgba(0, 0, 0, 0.87); } .navToggle .icon-left:before { -webkit-transition-duration: 0.5s; transition-duration: 0.5s; position: absolute; width: 15px; height: 4px; background-color: rgba(0, 0, 0, 0.87); content: ""; top: -10px; } .navToggle .icon-left:after { -webkit-transition-duration: 0.5s; transition-duration: 0.5s; position: absolute; width: 15px; height: 4px; background-color: rgba(0, 0, 0, 0.87); content: ""; top: 10px; } .navToggle .icon-right { -webkit-transition-duration: 0.5s; transition-duration: 0.5s; position: absolute; height: 4px; top: 25px; width: 15px; background-color: rgba(0, 0, 0, 0.87); left: 15px; } .navToggle .icon-right:before { -webkit-transition-duration: 0.5s; transition-duration: 0.5s; position: absolute; width: 15px; height: 4px; background-color: rgba(0, 0, 0, 0.87); content: ""; top: -10px; } .navToggle .icon-right:after { -webkit-transition-duration: 0.5s; transition-duration: 0.5s; position: absolute; width: 15px; height: 4px; background-color: rgba(0, 0, 0, 0.87); content: ""; top: 10px; } .navToggle.open .icon-left { -webkit-transition-duration: 0.5s; transition-duration: 0.5s; background: transparent; } .navToggle.open .icon-left:before { -webkit-transform: rotateZ(45deg) scaleX(1.4) translate(2px, 2px); transform: rotateZ(45deg) scaleX(1.4) translate(2px, 2px); } .navToggle.open .icon-left:after { -webkit-transform: rotateZ(-45deg) scaleX(1.4) translate(2px, -2px); transform: rotateZ(-45deg) scaleX(1.4) translate(2px, -2px); } .navToggle.open .icon-right { -webkit-transition-duration: 0.5s; transition-duration: 0.5s; background: transparent; } .navToggle.open .icon-right:before { -webkit-transform: rotateZ(-45deg) scaleX(1.4) translate(-2px, 2px); transform: rotateZ(-45deg) scaleX(1.4) translate(-2px, 2px); } .navToggle.open .icon-right:after { -webkit-transform: rotateZ(45deg) scaleX(1.4) translate(-2px, -2px); transform: rotateZ(45deg) scaleX(1.4) translate(-2px, -2px); } .x { padding: 0; margin: 0; } </style></head><body> <div class="container"> <div class="row"> <nav class="col-sm-12"> <div class="navToggle"> <div class="icon-left"></div> <div class="icon-right"></div> </div> <h2><b>Material Design</b><span> Menu Toggle</span></h2> <ul> <li><a href="https://instagram.com/mblode_art" target="_blank">Follow me on Instagram @mblode_art</a></li> <li><a href="https://github.com/mblode" target="_blank">Check out my Github</a></li> <li><a href="https://codepen.io/mblode/" target="_blank">Created by Matthew Blode</a></li> <li><a href="https://codepen.io/Lewitje/pen/CwFce/" target="_blank">Fork of "Nav Toggler" by Lewi Hussey</a></li> </ul> </nav> </div> </div> <script src='//production-assets.codepen.io/assets/common/stopExecutionOnTimeout-b2a7b3fe212eaa732349046d8416e00a9dec26eb7fd347590fbced3ab38af52e.js'></script><script src='//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script><script src='https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js'></script> <script >$(".navToggle").click (function(){ $(this).toggleClass("open"); $("nav").toggleClass("open"); }); //# sourceURL=pen.js </script> </body></html>

Related: See More


Questions / Comments: