"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/vulchivijay/pen/bEWqdP?limit=all&page=2&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'> <style class="cp-pen-styles">@import url(https://fonts.googleapis.com/css?family=Lato); * { margin: 0; padding: 0; } *, *:after, *:before { box-sizing: border-box; } ol, ul { list-style: none; } a { color: #000; text-decoration: none; } html { line-height: 1.2; } body { background-color: #fff; color: #333; font-family: "Lato", arial, sans-serif; font-size: 16px; } .mobile { background-color: #19b698; border: 0 solid #333; border-width: 50px 15px; border-radius: 12px; box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.6); margin: 20px auto; max-width: 300px; height: 560px; overflow: hidden; position: relative; } header { background-color: #fff; background-color: rgba(255, 255, 255, 0); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2); height: 50px; } .logo { color: #fff; font-size: 20px; line-height: 50px; padding: 0 0 0 20px; text-transform: capitalize; } /* menu button */ .menuBtn { height: 30px; width: 30px; position: absolute; right: 20px; top: 10px; z-index: 101; } .menuBtn > span { background-color: #fff; border-radius: 1px; height: 2px; width: 100%; position: absolute; left: 50%; top: 50%; margin: -1px 0 0 -15px; -webkit-transition: height 100ms; transition: height 100ms; } .menuBtn > span:after, .menuBtn > span:before { content: ''; background-color: #fff; border-radius: 1px; height: 2px; width: 100%; position: absolute; left: 50%; margin-left: -15px; -webkit-transition: all 200ms; transition: all 200ms; } .menuBtn > span:after { top: -7px; } .menuBtn > span:before { bottom: -7px; } .menuBtn.act > span { height: 0; } .menuBtn.act > span:after, .menuBtn.act > span:before { background-color: #008877; top: 1px; } .menuBtn.act > span:after { -webkit-transform: rotate(45deg); transform: rotate(45deg); } .menuBtn.act > span:before { -webkit-transform: rotate(-45deg); transform: rotate(-45deg); } /* main menu block */ .mainMenu { background-color: #fff; position: absolute; left: 0; top: 0; z-index: 100; height: 100%; width: 100%; display: table; text-align: center; opacity: 0; -webkit-transition: all 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55); transition: all 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55); -webkit-transform: scale(0); transform: scale(0); } .mainMenu.act { opacity: 1; -webkit-transform: scale(1); transform: scale(1); } .mainMenu.act ul li { opacity: 1; -webkit-transform: translateX(0); transform: translateX(0); } .mainMenu ul { display: table-cell; vertical-align: middle; } .mainMenu li { padding: 8px 0; -webkit-transition: all 400ms 510ms; transition: all 400ms 510ms; opacity: 0; } .mainMenu li:nth-child(odd) { -webkit-transform: translateX(30%); transform: translateX(30%); } .mainMenu li:nth-child(even) { -webkit-transform: translateX(-30%); transform: translateX(-30%); } .mainMenu li:last-child { -webkit-transform: none; transform: none; } .mainMenu a { color: #19b698; display: inline-block; font-size: 18px; } .mainMenu a.suBtn { color: #fff; } /* sign up button */ .suBtn { background-color: #19b698; border-radius: 5px; padding: 10px 20px; } </style></head><body> <div class="mobile"> <div class="mainContainer"> <header> <a href="#" class="logo">logo</a> <a href="#" class="menuBtn"> <span class="lines"></span> </a> <nav class="mainMenu"> <ul> <li> <a href="#">Intro</a> </li> <li> <a href="#">Services</a> </li> <li> <a href="#">Team</a> </li> <li> <a href="#">Pricing</a> </li> <li> <a href="#" class="suBtn">Sing Up</a> </li> </ul> </nav> </header> <div class="container"> </div> <footer> </footer> </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 >$(document).ready(function(){ // menu click event $('.menuBtn').click(function() { $(this).toggleClass('act'); if($(this).hasClass('act')) { $('.mainMenu').addClass('act'); } else { $('.mainMenu').removeClass('act'); } }); }); //# sourceURL=pen.js </script> </body></html>

Related: See More


Questions / Comments: