"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/nicolasjengler/pen/GpjzQj?limit=all&page=9&q=mobile" /> <link href='https://fonts.googleapis.com/css?family=Lato:400,100,100italic,300,400italic,700,700italic,900,900italic,300italic' rel='stylesheet' type='text/css'> <link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css'> <style class="cp-pen-styles">html, *, *:before, *:after { box-sizing: border-box; } body, h1, h2, h3, h4, h5, h6 { font-family: 'Lato', sans-serif; } body { min-height: 100vh; padding: 25px; background: -webkit-linear-gradient(#FAFAFA, #F1F1F1); background: linear-gradient(#FAFAFA, #F1F1F1); position: relative; } .prototype { width: 320px; height: 480px; border-radius: 5px; background: #58228b; position: absolute; top: 50%; left: 50%; -webkit-transform: translate3d(-50%, -50%, 0); transform: translate3d(-50%, -50%, 0); box-shadow: 0 0 15px rgba(0, 0, 0, 0.5); overflow: hidden; } .header { cursor: pointer; } .header .hamburger { display: inline-block; line-height: 1; margin: 0 15px 0 15px; width: 18px; height: 3px; background: white; line-height: 40px; position: relative; } .header .hamburger:before, .header .hamburger:after { content: ''; display: inline-block; width: 18px; height: 3px; position: absolute; background: white; } .header .hamburger:before { top: -6px; left: 0; } .header .hamburger:after { top: 6px; left: 0; } .header h1 { display: inline-block; line-height: 40px; height: 40px; vertical-align: middle; margin: 4px 0 0 0; font-size: 20px; font-weight: 500; letter-spacing: 2px; color: white; text-transform: uppercase; } .content { padding: 25px; } .content button { display: block; width: auto; margin: 0 auto; cursor: pointer; border: 2px solid rgba(255, 255, 255, 0.5); border-radius: 20px; padding: 10px 20px; background: rgba(255, 255, 255, 0); text-transform: uppercase; font-size: 14px; color: white; text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.25); -webkit-transition: .3s ease-in-out; transition: .3s ease-in-out; } .content button:hover { border-color: white; background: rgba(255, 255, 255, 0.1); } .content .mask { cursor: pointer; position: absolute; top: 50%; left: 50%; -webkit-transform: translate3d(-50%, -50%, 0); transform: translate3d(-50%, -50%, 0); width: 80px; height: 80px; border-radius: 50%; overflow: hidden; background: #5856D6; z-index: 999; box-shadow: 0 5px 30px rgba(0, 0, 0, 0.25); -webkit-transition: top 1.5s cubic-bezier(0.55, 0, 0.1, 1), width 0.5s cubic-bezier(0.55, 0, 0.1, 1) 0.7s, height 0.5s cubic-bezier(0.55, 0, 0.1, 1) 0.7s; transition: top 1.5s cubic-bezier(0.55, 0, 0.1, 1), width 0.5s cubic-bezier(0.55, 0, 0.1, 1) 0.7s, height 0.5s cubic-bezier(0.55, 0, 0.1, 1) 0.7s; } .content .mask.is-open { top: 0; width: 1500px; height: 1500px; } </style></head><body> <div class="prototype"> <div class="header"> <span class="hamburger"></span> <h1> App Name </h1> </div> <div class="content"> <button>Some button</button> <div class="mask" id="maskHolder"> <span class="cross"></span> </div> </div> </div> <script src='//production-assets.codepen.io/assets/common/stopExecutionOnTimeout-b2a7b3fe212eaa732349046d8416e00a9dec26eb7fd347590fbced3ab38af52e.js'></script> <script >var mask = document.getElementById('maskHolder'); var toggleModal = function() { mask.classList.toggle('is-open'); console.log('You\'re interacting with the modal window!') } mask.addEventListener("click", toggleModal); //# sourceURL=pen.js </script> </body></html>

Related: See More


Questions / Comments: