"mobile"
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/hugo/pen/jilwC?limit=all&page=28&q=mobile" /> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css'><link rel='stylesheet prefetch' href='//maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css'> <style class="cp-pen-styles">*, *:after, *:before { box-sizing: border-box; } html { background: #2c3e50; } .phone { background: #ccc; box-shadow: 0 0 3em rgba(0, 0, 0, 0.7); height: 100%; left: 50%; max-height: 568px; max-width: 320px; position: absolute; top: 50%; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); width: 100%; } .phone:after, .phone:before { display: none; position: absolute; pointer-event: none; } .phone:before { background: rgba(0, 0, 0, 0.8); bottom: 0; color: rgba(255, 255, 255, 0.4); display: none; font-size: 5em; line-height: 6; left: 0; right: 0; text-align: center; top: 0; z-index: 2; } .phone.open:before { display: inline-block; } .phone__screen { height: 100%; overflow: hidden; padding-top: 3em; position: relative; width: 100%; } .top-bar { background: #222; height: 3em; padding: 0 0.25em; position: absolute; top: 0; width: 100%; z-index: 2; } .nav { background: #222; bottom: -6em; left: -15%; height: 10.5em; padding: 0 2.75em; position: absolute; -webkit-transform: rotate(10deg) translate3D(-5em, 10em, 0); transform: rotate(10deg) translate3D(-5em, 10em, 0); -webkit-transition: 0.4s; transition: 0.4s; width: 120%; z-index: 2; } .nav.open { -webkit-transform: rotate(10deg) translate3D(0, 0, 0); transform: rotate(10deg) translate3D(0, 0, 0); } .nav__item { background: #ccc; border: 0.3em solid #222; border-radius: 50%; color: #222; display: inline-block; height: 3em; margin: 0 0.2em; position: relative; top: -1.5em; text-decoration: none; text-align: center; -webkit-transform: rotate(-10deg) translate3D(-5em, 10em, 0); transform: rotate(-10deg) translate3D(-5em, 10em, 0); -webkit-transition: 0.2s ease-in-out; transition: 0.2s ease-in-out; width: 3em; } .open .nav__item:nth-child(1) { -webkit-transform: rotate(-10deg) translate3D(0, 0, 0); transform: rotate(-10deg) translate3D(0, 0, 0); -webkit-transition-delay: 0s; transition-delay: 0s; } .open .nav__item:nth-child(2) { -webkit-transform: rotate(-10deg) translate3D(0, 0, 0); transform: rotate(-10deg) translate3D(0, 0, 0); -webkit-transition-delay: 0.1s; transition-delay: 0.1s; } .open .nav__item:nth-child(3) { -webkit-transform: rotate(-10deg) translate3D(0, 0, 0); transform: rotate(-10deg) translate3D(0, 0, 0); -webkit-transition-delay: 0.2s; transition-delay: 0.2s; } .open .nav__item:nth-child(4) { -webkit-transform: rotate(-10deg) translate3D(0, 0, 0); transform: rotate(-10deg) translate3D(0, 0, 0); -webkit-transition-delay: 0.3s; transition-delay: 0.3s; } .open .nav__item:nth-child(5) { -webkit-transform: rotate(-10deg) translate3D(0, 0, 0); transform: rotate(-10deg) translate3D(0, 0, 0); -webkit-transition-delay: 0.4s; transition-delay: 0.4s; } .nav__item:before { font-size: 1.5em; line-height: 1.75; } .top-bar__icon { cursor: pointer; display: inline-block; font-size: 6px; height: 6em; margin: 2%; position: relative; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; -webkit-transition: 0.2s ease-in-out; transition: 0.2s ease-in-out; width: 6em; -webkit-tap-highlight-color: transparent; } .top-bar__icon span { background: #fff; border-radius: 2em; -webkit-backface-visibility: hidden; backface-visibility: hidden; height: 0.8em; position: absolute; -webkit-transition: 0.2s ease-in-out; transition: 0.2s ease-in-out; -webkit-tap-highlight-color: transparent; width: 50%; } .top-bar__icon span:nth-child(1) { border-radius: 2em 0 0 2em; left: 0; top: 1em; } .top-bar__icon span:nth-child(2) { border-radius: 0 2em 2em 0; top: 1em; right: 0; } .top-bar__icon span:nth-child(3) { left: 0; top: 2.6em; width: 100%; } .top-bar__icon span:nth-child(4) { border-radius: 2em 0 0 2em; left: 0; top: 4.2em; } .top-bar__icon span:nth-child(5) { border-radius: 0 2em 2em 0; right: 0; top: 4.2em; } .top-bar__icon.open span:nth-child(1) { -webkit-transform: rotate(45deg) translate(0.8em); transform: rotate(45deg) translate(0.8em); } .top-bar__icon.open span:nth-child(2) { -webkit-transform: rotate(-45deg) translate(-0.9em); transform: rotate(-45deg) translate(-0.9em); } .top-bar__icon.open span:nth-child(3) { opacity: 0; } .top-bar__icon.open span:nth-child(4) { -webkit-transform: rotate(-45deg) translate(0.8em); transform: rotate(-45deg) translate(0.8em); } .top-bar__icon.open span:nth-child(5) { -webkit-transform: rotate(45deg) translate(-0.9em); transform: rotate(45deg) translate(-0.9em); } iframe { height: 100%; width: 100%; } </style></head><body> <phone class=" phone js-toggle [ fa fa-codepen ] "> <div class=" phone__screen"> <nav class=" top-bar "> <div class=" top-bar__icon js-toggle " id="js-toggle"> <span></span> <span></span> <span></span> <span></span> <span></span> </div> </nav> <nav class=" nav js-toggle "> <a class=" nav__item [ fa fa-home ] " href=""></a> <a class=" nav__item [ fa fa-codepen ] " href=""></a> <a class=" nav__item [ fa fa-pencil ] " href=""></a> <a class=" nav__item [ fa fa-user ] " href=""></a> <a class=" nav__item [ fa fa-cog ] " href=""></a> </nav> <iframe src="https://codepen.io" frameborder="0"></iframe> </div> </phone> <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 >$('#js-toggle').on('click', function(e) { e.preventDefault(); $('.js-toggle').toggleClass('open'); }); //# sourceURL=pen.js </script> </body></html>

Related: See More


Questions / Comments: