"tablet"
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/biernacki/pen/zwoXed?depth=everything&order=popularity&page=5&q=tablet&show_forks=false" /> <style class="cp-pen-styles">html { font-size: 10px; } body { background: #222; } .device { display: block; text-align: center; margin-bottom: 50px; perspective: 700px; } .device__laptop-keyboard { display: block; transition: transform .8s; margin: 0.5vw auto; width: 44.46615vw; background: #eee; height: 1.5vw; border-top: 0.3vw #999 solid; box-shadow: inset 0 0 0.66667vw 0 #777; border-bottom-left-radius: 1vw; border-bottom-right-radius: 1vw; position: relative; z-index: 5; } .device__body { display: inline-block; background: #eee; box-shadow: inset 0 0 0.8vw 0 #333, 0 0 2vw 0 rgba(0, 0, 0, 0.5); border-radius: 1vw; color: #fff; position: relative; overflow: hidden; transform: rotateX(2deg); transition: transform .8s; } .device:hover .device__body { transform: rotateX(10deg); } .device:hover .device__laptop-keyboard { transform: scale(1.05); } .device__body:after { content: ""; position: absolute; top: -30vw; left: -40vw; height: 60vw; width: 60vw; box-shadow: inset 0 0 20vw 0 rgba(255, 255, 255, 0.1); transform: rotate(40deg); pointer-events: none; transition: left .6s; } .device:hover .device__body:after { left: -50vw; } .device__body--laptop { padding: 1.5vw; } .device__body--tablet { padding: 1.8vw; } .device__body--smartphone { padding: 2vw; } .device__body__screen { background: #000; border: 0.3vw #999 solid; box-shadow: 0 0 0.66667vw 0 #777; border-radius: 1%; } .device__body__screen--laptop { height: 20vw; width: 35.57292vw; border: 0.3vw #999 solid; } .device__body__screen--tablet--horizontal { height: 20vw; width: 34.13333vw; } .device__body__screen--tablet--vertical { height: 34.13333vw; width: 20vw; } .device__body__screen--smartphone--horizontal { height: 20vw; width: 35.55556vw; } .device__body__screen--smartphone--vertical { height: 35.55556vw; width: 20vw; } .device__body--smartphone--vertical { padding: 3.33333vw 0; } .device__body--smartphone--horizontal { padding: 0 3.33333vw; } .device__body__screen--smartphone--vertical, .device__body__screen--smartphone--horizontal { border: none; box-shadow: none; } .iframe { height: 100%; width: 100%; border: none; border-radius: 1%; overflow: hidden; } .camera { position: absolute; height: 1vw; width: 1vw; border-radius: 50%; background: rgba(0, 0, 0, 0.6); box-shadow: inset 0 0 0 4px rgba(0, 0, 0, 0.2); z-index: 3; } .camera--laptop { top: 0.375vw; margin: auto; } .camera--tablet--horizontal { top: 0.6vw; left: 0.6vw; } .camera--tablet--vertical { top: 0.6vw; right: 0.6vw; } .camera--smartphone--horizontal { left: 1.2vw; top: 1.2vw; } .camera--smartphone--vertical { right: 1.2vw; top: 1.2vw; } .brand { position: absolute; height: 1vw; width: 1vw; } .brand--laptop { bottom: 0.3vw; } .brand--tablet--horizontal { left: 0.6vw; bottom: 0.6vw; } .brand--tablet--vertical { left: 0.6vw; top: 0.6vw; } .brand--smartphone--horizontal { left: 1.2vw; bottom: 1.2vw; } .brand--smartphone--vertical { left: 1.2vw; top: 1.2vw; } </style></head><body> <div class="device"> <div class="device__body device__body--laptop"> <div class="device__body__screen device__body__screen--laptop"> <iframe src="https://codepen.io" class="iframe"></iframe> </div> <span class="camera camera--laptop"></span> <img src="https://biernacki.studio/logo-transparent.svg" alt="" class="brand brand--laptop" /> </div> <div class="device__laptop-keyboard"> </div> </div> <div class="device"> <div class="device__body device__body--tablet"> <div class="device__body__screen device__body__screen--tablet--horizontal"> whatever (iframe, image) </div> <span class="camera camera--tablet--horizontal"></span> <img src="https://biernacki.studio/logo-transparent.svg" alt="" class="brand brand--tablet--horizontal" /> </div> </div> <div class="device"> <div class="device__body device__body--tablet"> <div class="device__body__screen device__body__screen--tablet--vertical"></div> <span class="camera camera--tablet--vertical"></span> <img src="https://biernacki.studio/logo-transparent.svg" alt="" class="brand brand--tablet--vertical" /> </div> </div> <div class="device"> <div class="device__body device__body--smartphone--vertical device__body--smartphone"> <div class="device__body__screen device__body__screen--smartphone--vertical"> </div> <span class="camera camera--smartphone--vertical"></span> <img src="https://biernacki.studio/logo-transparent.svg" alt="" class="brand brand--smartphone--vertical" /> </div> </div> <div class="device"> <div class="device__body device__body--smartphone device__body--smartphone--horizontal"> <div class="device__body__screen device__body__screen--smartphone--horizontal"></div> <span class="camera camera--smartphone--horizontal"></span> <img src="https://biernacki.studio/logo-transparent.svg" alt="" class="brand brand--smartphone--horizontal" /> </div> </div> <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js'></script> </body></html>

Related: See More


Questions / Comments: