"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/mattstvartak/pen/zrQadM?depth=everything&order=popularity&page=12&q=device&show_forks=false" /> <link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css'><link rel='stylesheet prefetch' href='https://s3-us-west-2.amazonaws.com/s.cdpn.io/83141/devices.min.css'> <style class="cp-pen-styles">@import url(https://fonts.googleapis.com/css?family=Lato:400,300,700); body { background-color: #2d3032; font-family: Lato, sans-serif; } .marvel-device { -webkit-transition: all 500ms ease; -moz-transition: all 500ms ease; transition: all 500ms ease; -webkit-transform: translate3d(-50%, -50%, 0) scale(0.75); -moz-transform: translate3d(-50%, -50%, 0) scale(0.75); -ms-transform: translate3d(-50%, -50%, 0) scale(0.75); -o-transform: translate3d(-50%, -50%, 0) scale(0.75); transform: translate3d(-50%, -50%, 0) scale(0.75); box-shadow: 5px 10px 60px rgba(0, 0, 0, 0.8) !important; left: 50%; position: absolute; top: 50%; width: 375px; will-change: transform; } .marvel-device.is-landscape { -webkit-transform: translate3d(-50%, -50%, 0) scale(0.75) rotate(90deg); -moz-transform: translate3d(-50%, -50%, 0) scale(0.75) rotate(90deg); -ms-transform: translate3d(-50%, -50%, 0) scale(0.75) rotate(90deg); -o-transform: translate3d(-50%, -50%, 0) scale(0.75) rotate(90deg); transform: translate3d(-50%, -50%, 0) scale(0.75) rotate(90deg); box-shadow: 10px -5px 60px rgba(0, 0, 0, 0.8) !important; } .marvel-device.is-portrait { -webkit-transform: translate3d(-50%, -50%, 0) scale(0.75) rotate(0deg); -moz-transform: translate3d(-50%, -50%, 0) scale(0.75) rotate(0deg); -ms-transform: translate3d(-50%, -50%, 0) scale(0.75) rotate(0deg); -o-transform: translate3d(-50%, -50%, 0) scale(0.75) rotate(0deg); transform: translate3d(-50%, -50%, 0) scale(0.75) rotate(0deg); } .screen__content { -webkit-transition: all 500ms ease; -moz-transition: all 500ms ease; transition: all 500ms ease; -webkit-transform-origin: center; -moz-transform-origin: center; -ms-transform-origin: center; -o-transform-origin: center; transform-origin: center; width: 375px; height: 675px; will-change: transform; } .is-landscape .screen__content { -webkit-transform: rotate(-90deg) translate3d(-145px, -150px, 0); -moz-transform: rotate(-90deg) translate3d(-145px, -150px, 0); -ms-transform: rotate(-90deg) translate3d(-145px, -150px, 0); -o-transform: rotate(-90deg) translate3d(-145px, -150px, 0); transform: rotate(-90deg) translate3d(-145px, -150px, 0); position: absolute; width: 675px; height: 375px; } .screen { background-color: #2d3032; overflow: hidden; } .loading { -webkit-transform: translate3d(-50%, -50%, 0); -moz-transform: translate3d(-50%, -50%, 0); -ms-transform: translate3d(-50%, -50%, 0); -o-transform: translate3d(-50%, -50%, 0); transform: translate3d(-50%, -50%, 0); left: 50%; position: absolute; top: 50%; } @-webkit-keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } } @-moz-keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } } @keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } } .loading .bottle { opacity: 0; } .loading .bottle:nth-child(4) { -webkit-animation: loading 1500ms ease infinite 100ms; -moz-animation: loading 1500ms ease infinite 100ms; animation: loading 1500ms ease infinite 100ms; } .loading .bottle:nth-child(3) { -webkit-animation: loading 1500ms ease infinite 200ms; -moz-animation: loading 1500ms ease infinite 200ms; animation: loading 1500ms ease infinite 200ms; } .loading .bottle:nth-child(2) { -webkit-animation: loading 1500ms ease infinite 300ms; -moz-animation: loading 1500ms ease infinite 300ms; animation: loading 1500ms ease infinite 300ms; } .loading .bottle:nth-child(1) { -webkit-animation: loading 1500ms ease infinite 400ms; -moz-animation: loading 1500ms ease infinite 400ms; animation: loading 1500ms ease infinite 400ms; } .loading .bottle-xlarge { height: 82px; } .loading .bottle-large { height: 71px; } .loading .bottle-medium { height: 64px; } .loading .bottle-small { height: 52px; } @-webkit-keyframes loading { 10% { -webkit-transform: translateY(-100px); opacity: 0; } 30% { -webkit-transform: translateY(0); opacity: 1; } 60% { -webkit-transform: translateY(0); opacity: 1; } 90% { -webkit-transform: translateY(100px); opacity: 0; } } @-moz-keyframes loading { 10% { -moz-transform: translateY(-100px); opacity: 0; } 30% { -moz-transform: translateY(0); opacity: 1; } 60% { -moz-transform: translateY(0); opacity: 1; } 90% { -moz-transform: translateY(100px); opacity: 0; } } @keyframes loading { 10% { -webkit-transform: translateY(-100px); -moz-transform: translateY(-100px); -ms-transform: translateY(-100px); -o-transform: translateY(-100px); transform: translateY(-100px); opacity: 0; } 30% { -webkit-transform: translateY(0); -moz-transform: translateY(0); -ms-transform: translateY(0); -o-transform: translateY(0); transform: translateY(0); opacity: 1; } 60% { -webkit-transform: translateY(0); -moz-transform: translateY(0); -ms-transform: translateY(0); -o-transform: translateY(0); transform: translateY(0); opacity: 1; } 90% { -webkit-transform: translateY(100px); -moz-transform: translateY(100px); -ms-transform: translateY(100px); -o-transform: translateY(100px); transform: translateY(100px); opacity: 0; } } .device-controls { -webkit-transform: translateX(-50%); -moz-transform: translateX(-50%); -ms-transform: translateX(-50%); -o-transform: translateX(-50%); transform: translateX(-50%); position: absolute; left: 50%; bottom: 20px; } .button { border: 1px solid #efc371; border-radius: 30px; color: #efc371; display: inline-block; font-weight: 300; padding: 10px 20px; } .button:hover { background-color: #efc371; border-color: #efc371; color: #2d3032; cursor: pointer; } </style></head><body> <div class="marvel-device iphone6 white"> <div class="top-bar"></div> <div class="sleep"></div> <div class="volume"></div> <div class="camera"></div> <div class="sensor"></div> <div class="speaker"></div> <div class="screen"> <div class="screen__content"> <div class="loading"> <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/83141/15ML.png" alt="15ML Bottle" class="bottle bottle-small" /> <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/83141/30ML.png" alt="30ML Bottle" class="bottle bottle-medium" /> <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/83141/120ML.png" alt="120ML Bottle" class="bottle bottle-xlarge" /> <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/83141/60ML.png" class="bottle bottle-large" /> </div><!-- /.loading --> </div><!-- .screen__content --> </div> <div class="home"></div> <div class="bottom-bar"></div> </div><!-- /.marvel-device --> <div class="device-controls"> <div class="button button--portrait">Portrait</div> <div class="button button--landscape">Landscape</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 >(function($) { var button = $('.button'); button.on('click', function() { if( $(this).hasClass('button--portrait') ) { $('.marvel-device').addClass('is-portrait'); $('.marvel-device').removeClass('is-landscape'); } else { $('.marvel-device').removeClass('is-portrait'); $('.marvel-device').addClass('is-landscape'); } }); })(jQuery); //# sourceURL=pen.js </script> </body></html>

Related: See More


Questions / Comments: