"device animation"
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/kevinjannis/pen/Eianz?depth=everything&order=popularity&page=4&q=device&show_forks=false" /> <link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css'> <style class="cp-pen-styles">* { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; margin: 0; padding: 0; } body { background: #a9a9a9; text-align: center; padding: 20px 0; } .device { position: relative; display: inline-block; border-style: solid; } .device, .device:before, .device:after { -moz-transition: all 0.4s cubic-bezier(0.52, 1.82, 0.44, 1.14); -o-transition: all 0.4s cubic-bezier(0.52, 1.82, 0.44, 1.14); -webkit-transition: all 0.4s cubic-bezier(0.52, 1.82, 0.44, 1.14); transition: all 0.4s cubic-bezier(0.52, 1.82, 0.44, 1.14); } .device:before { -moz-border-radius: 50%; -webkit-border-radius: 50%; border-radius: 50%; content: " "; position: absolute; display: block; left: 0; right: 0; margin: auto; } .device:after { content: " "; position: absolute; display: block; border-style: solid; left: 0; right: 0; margin: auto; } .iphone { -moz-border-radius: 13px; -webkit-border-radius: 13px; border-radius: 13px; background: #00a784; border-color: #484f5e; border-width: 18px 4px; width: 59px; height: 124px; } .iphone:before { background: white; bottom: -13px; width: 8px; height: 8px; } .iphone:after { border-color: #a5adbe; border-width: 0 12px 0 2px; height: 2px; width: 2px; top: -10px; } .mini { -moz-border-radius: 13px; -webkit-border-radius: 13px; border-radius: 13px; background: #f88c20; border-color: #484f5e; border-width: 14px 5px; width: 93px; height: 138px; } .mini:before { background: #ffffff; bottom: -11px; width: 8px; height: 8px; } .mini:after { border-color: #a5adbe; border-width: 0 12px 0 2px; height: 2px; width: 2px; top: -8px; } .ipad { -moz-border-radius: 13px; -webkit-border-radius: 13px; border-radius: 13px; background: #ffe698; border-color: #484f5e; border-width: 18px 13px; width: 134px; height: 176px; } .ipad:before { background: #ffffff; bottom: -13px; width: 8px; height: 8px; } .ipad:after { border-color: #a5adbe; border-width: 0 12px 0 2px; height: 2px; width: 2px; top: -10px; } .macbook { -moz-border-radius: 7px 7px 0 0; -webkit-border-radius: 7px; border-radius: 7px 7px 0 0; background: #fb585a; border-color: #484f5e; border-width: 8px; width: 234px; height: 155px; } .macbook:before { -moz-border-radius: 0 0 50px 50px; -webkit-border-radius: 0; border-radius: 0 0 50px 50px; background: #e8ebf0; height: 14px; width: 294px; top: 147px; left: -39px; } .macbook:after { -moz-border-radius: 50%; -webkit-border-radius: 50%; border-radius: 50%; border-color: #a5adbe; border-width: 0 0 0 3px; height: 3px; width: 0; top: -6px; } .imac { -moz-border-radius: 10px; -webkit-border-radius: 10px; border-radius: 10px; -moz-box-shadow: inset 0 14px 0 0 #484f5e, inset 14px 0 0 #484f5e, inset -14px 0 0 #484f5e; -webkit-box-shadow: inset 0 14px 0 0 #484f5e, inset 14px 0 0 #484f5e, inset -14px 0 0 #484f5e; box-shadow: inset 0 14px 0 0 #484f5e, inset 14px 0 0 #484f5e, inset -14px 0 0 #484f5e; background: #68c5eb; border: none; border-bottom: solid 33px #e8ebf1; width: 361px; height: 215px; } .imac:before { -moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0; height: 0px; width: 90px; border-style: solid; border-color: transparent transparent #e2e4e8 transparent; border-width: 0 10px 47px 10px; top: 215px; } .imac:after { -moz-border-radius: 50%; -webkit-border-radius: 50%; border-radius: 50%; -moz-box-shadow: 0 191px 0 4px #464e5d; -webkit-box-shadow: 0 191px 0 4px #464e5d; box-shadow: 0 191px 0 4px #464e5d; border-color: #a5adbe; border-width: 0 0 0 4px; height: 4px; width: 0; top: 5px; } </style></head><body> <div class="device iphone"></div> <script src='//production-assets.codepen.io/assets/common/stopExecutionOnTimeout-b2a7b3fe212eaa732349046d8416e00a9dec26eb7fd347590fbced3ab38af52e.js'></script> <script >/* Apple devices loop Made by Kevin Jannis (@kevinjannis) View more at www.janniskev.in */ var classes = ['iphone', 'mini', 'ipad', 'macbook', 'imac']; var current = 0; function setClass() { current++; if (current >= classes.length) { current = 0; } var device = document.getElementsByClassName('device')[0]; device.setAttribute('class', ['device', classes[current]].join(' ')); setTimeout(setClass, 1000); }; setTimeout(setClass, 1000); //# sourceURL=pen.js </script> </body></html>

Related: See More


Questions / Comments: