"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/RiccardoZaffalon/pen/aypqBp?depth=everything&order=popularity&page=68&q=movie&show_forks=false" /> <link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css'><link rel='stylesheet prefetch' href='https://fonts.googleapis.com/css?family=Lato:400,900'> <style class="cp-pen-styles">html, body { height: 100%; width: 100%; overflow: hidden; background-color: #fff; font-family: 'Lato', sans-serif; font-weight: 400; } .iphone { width: 375px; height: 667px; position: absolute; left: 50%; top: 50%; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); background-color: #999; box-shadow: 0 0 40px rgba(0, 0, 0, 0.19); overflow: hidden; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; } .movie--container { color: #f5f5f5; text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.25); -webkit-box-flex: 1; -ms-flex: 1; flex: 1; background-position: center center; background-size: cover; -webkit-transition: all 400ms cubic-bezier(0.8, 0, 0.2, 1); transition: all 400ms cubic-bezier(0.8, 0, 0.2, 1); position: relative; overflow: hidden; cursor: pointer; } .movie--container .movie--genre { padding-bottom: 0px; -webkit-transition: all 250ms cubic-bezier(0.8, 0, 0.2, 1) 250ms; transition: all 250ms cubic-bezier(0.8, 0, 0.2, 1) 250ms; } .movie--container .movie--title { padding-bottom: 0px; -webkit-transition: all 250ms cubic-bezier(0.8, 0, 0.2, 1) 150ms; transition: all 250ms cubic-bezier(0.8, 0, 0.2, 1) 150ms; } .movie--container:hover { -webkit-box-flex: 1.25; -ms-flex: 1.25; flex: 1.25; } .movie--container:hover .movie--title { padding-bottom: 8px; } .movie--container:hover .movie--genre { -webkit-animation: bounce 350ms cubic-bezier(0.8, 0, 0.2, 1); animation: bounce 350ms cubic-bezier(0.8, 0, 0.2, 1); } .movie--container.clicked, .movie--container.clicked:hover { -webkit-box-flex: 3; -ms-flex: 3; flex: 3; } .movie--container.clicked .movie--play, .movie--container.clicked:hover .movie--play { opacity: 1; padding-bottom: 8px; } .movie--meta { position: absolute; bottom: 16px; left: 16px; right: 16px; -webkit-transition-delay: 250ms; transition-delay: 250ms; text-transform: uppercase; box-sizing: border-box; padding-right: 20%; } .movie--title { font-weight: 900; font-size: 2.15em; line-height: 0.85; } .movie--runtime { position: absolute; top: 16px; right: 16px; -webkit-transition-delay: 250ms; transition-delay: 250ms; text-transform: uppercase; font-weight: 900; font-size: 0.875em; } .movie--play { position: absolute; bottom: 16px; right: 16px; -webkit-transition-delay: 250ms; transition-delay: 250ms; text-transform: uppercase; font-weight: 900; font-size: 0.875em; opacity: 0; padding-bottom: 0; -webkit-transition: all 250ms cubic-bezier(0.8, 0, 0.2, 1) 150ms; transition: all 250ms cubic-bezier(0.8, 0, 0.2, 1) 150ms; } .movie--play:hover svg { -webkit-animation: pulse 250ms cubic-bezier(0.8, 0, 0.2, 1); animation: pulse 250ms cubic-bezier(0.8, 0, 0.2, 1); } .iphone:hover .movie--container { -webkit-filter: brightness(0.75); filter: brightness(0.75); } .iphone .movie--container:hover { -webkit-filter: brightness(1); filter: brightness(1); } .now-playing { -webkit-box-flex: 0; -ms-flex: none; flex: none; -webkit-transition: all 250ms cubic-bezier(0.8, 0, 0.2, 1); transition: all 250ms cubic-bezier(0.8, 0, 0.2, 1); background: #333; color: #f5f5f5; padding: 0 16px; text-transform: uppercase; font-size: 0.75em; letter-spacing: 1px; max-height: 0px; overflow: hidden; box-sizing: content-box; } .now-playing.show { max-height: 45px; padding: 16px 16px; } .now-playing--title { font-weight: 900; opacity: 1; -webkit-transition: all 250ms cubic-bezier(0.8, 0, 0.2, 1); transition: all 250ms cubic-bezier(0.8, 0, 0.2, 1); } .now-playing--title.hide { opacity: 0; } /* Covers */ #movie-1 { background-image: url("http://ilarge.lisimg.com/image/2939670/896full-indiana-jones-and-the-raiders-of-the-lost-ark-screenshot.jpg"); } #movie-2 { background-image: url("http://cinemavine.com/wp-content/uploads/2015/08/sicario-trailer-screenshots-.png"); } #movie-3 { background-image: url("http://cdn.phillymag.com/wp-content/uploads/2015/04/ex-machina.jpg"); } @-webkit-keyframes bounce { 0% { -webkit-transform: translateY(0px); transform: translateY(0px); } 50% { -webkit-transform: translateY(8px); transform: translateY(8px); } 100% { -webkit-transform: translateY(0px); transform: translateY(0px); } } @keyframes bounce { 0% { -webkit-transform: translateY(0px); transform: translateY(0px); } 50% { -webkit-transform: translateY(8px); transform: translateY(8px); } 100% { -webkit-transform: translateY(0px); transform: translateY(0px); } } @-webkit-keyframes pulse { 0% { -webkit-transform: scale(1); transform: scale(1); } 50% { -webkit-transform: scale(1.25); transform: scale(1.25); } 100% { -webkit-transform: scale(1); transform: scale(1); } } @keyframes pulse { 0% { -webkit-transform: scale(1); transform: scale(1); } 50% { -webkit-transform: scale(1.25); transform: scale(1.25); } 100% { -webkit-transform: scale(1); transform: scale(1); } } </style></head><body> <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:a="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/" x="0px" y="0px" width="24px" height="24px" viewBox="0 0 24 24" style="enable-background:new 0 0 24 24;" xml:space="preserve"> <style type="text/css"> .st1{fill: rgba(255,255,255,0.9);} </style> <defs> <symbol id="play-icon"> <g id="Circle_1_"> <path id="XMLID_26_" class="st1" d="M12,2c5.5,0,10,4.5,10,10s-4.5,10-10,10S2,17.5,2,12S6.5,2,12,2 M12,0C5.4,0,0,5.4,0,12 s5.4,12,12,12s12-5.4,12-12S18.6,0,12,0L12,0z"/> </g> <polygon id="Tri_x5F_BG_1_" class="st1" points="9,7 17.6,12 9,17 "/> </symbol> </defs> </svg> <div class="iphone"> <div class="movie--container" id="movie-1"> <div class="movie--meta"> <div class="movie--genre">Adventure</div> <div class="movie--title">Raiders of the Lost Ark</div> </div> <div class="movie--play"> <svg width="24px" height="24px"> <use xlink:href="#play-icon" /> </svg> </div> <div class="movie--runtime">115'</div> </div> <div class="movie--container" id="movie-2"> <div class="movie--meta"> <div class="movie--genre">Action</div> <div class="movie--title">Sicario</div> </div> <div class="movie--play"> <svg width="24px" height="24px"> <use xlink:href="#play-icon" /> </svg> </div> <div class="movie--runtime">121'</div> </div> <div class="movie--container" id="movie-3"> <div class="movie--meta"> <div class="movie--genre">Sci-Fi</div> <div class="movie--title">Ex Machina</div> </div> <div class="movie--play"> <svg width="24px" height="24px"> <use xlink:href="#play-icon" /> </svg> </div> <div class="movie--runtime">108'</div> </div> <div class="now-playing"> Now Playing: <span class="now-playing--title"></span> </div> </div> <script src='//production-assets.codepen.io/assets/common/stopExecutionOnTimeout-b2a7b3fe212eaa732349046d8416e00a9dec26eb7fd347590fbced3ab38af52e.js'></script><script src='https://cdnjs.cloudflare.com/ajax/libs/zepto/1.2.0/zepto.min.js'></script> <script >$('.iphone').on('click', '.movie--container', function(item) { $('.movie--container').not(this).removeClass('clicked'); $(this).toggleClass('clicked'); }) $('.movie--container').on('click', '.movie--play', function(e) { e.stopPropagation(); $('.now-playing').addClass('show'); $('.now-playing--title').addClass('hide'); var title = $(this).parent().find('.movie--title').text(); window.setTimeout(function() { $('.now-playing--title').text(title); }, 300); window.setTimeout(function() { $('.now-playing--title').removeClass('hide'); }, 300); }) //# sourceURL=pen.js </script> </body></html>

Related: See More


Questions / Comments: