"slide"
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 lang='en' 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/codewunder/pen/Bnspb?limit=all&page=59&q=media" /> <style class="cp-pen-styles">@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,600,700); body { padding: 3em 2em; font-family: 'Open Sans', Arial, sans-serif; font-size: 1em; margin: 0; padding: 0; line-height: 1; background: #111111; } .pen { max-width: 635px; width: 100%; margin: 50px auto 0; opacity: 0; position: relative; -webkit-transition: all 0.25s ease-in-out; -moz-transition: all 0.25s ease-in-out; -ms-transition: all 0.25s ease-in-out; -o-transition: all 0.25s ease-in-out; transition: all 0.25s ease-in-out; -webkit-animation: 1s appear 1 forwards; -moz-animation: 1s appear 1 forwards; -o-animation: 1s appear 1 forwards; animation: 1s appear 1 forwards; } .credit { display: block; max-width: 400px; text-align: center; margin: 150px auto 0; padding: 0; font-size: 0.8em; color: #f0f0f0; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.9); } .credit p a, .credit a { color: white; text-decoration: none; font-weight: 700; } .credit p a:hover, .credit a:hover, .credit p a:active, .credit a:active { text-shadow: 0 0 5px rgba(255, 255, 255, 0.4); color: white; } .credit p a.button, .credit a.button { padding: 6px 12px; margin-top: 10px; background: #000000; border-radius: 3px; } .credit p a.button:hover, .credit a.button:hover { background: #2b2b2b; } .credit p:last-of-type { margin-bottom: 30px; } .stage { max-width: 635px; width: 100%; height: 400px; -webkit-transition: all 0.25s ease-in-out; -moz-transition: all 0.25s ease-in-out; -ms-transition: all 0.25s ease-in-out; -o-transition: all 0.25s ease-in-out; transition: all 0.25s ease-in-out; } .element { background: green; width: 202px; -webkit-transform-origin: 50% 50%; height: inherit; margin: 0 7px 0 0; display: inline-block; -webkit-transition: all 0.25s ease-in-out; -moz-transition: all 0.25s ease-in-out; -ms-transition: all 0.25s ease-in-out; -o-transition: all 0.25s ease-in-out; transition: all 0.25s ease-in-out; -webkit-transform: translate3d(0, 0, 0); -moz-transform: translate3d(0, 0, 0); -ms-transform: translate3d(0, 0, 0); -o-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } .element.active { width: 282px; -webkit-transition: all 0.25s ease-in-out; -moz-transition: all 0.25s ease-in-out; -ms-transition: all 0.25s ease-in-out; -o-transition: all 0.25s ease-in-out; transition: all 0.25s ease-in-out; } .element.inactive { width: 162px; -webkit-transition: all 0.25s ease-in-out; -moz-transition: all 0.25s ease-in-out; -ms-transition: all 0.25s ease-in-out; -o-transition: all 0.25s ease-in-out; transition: all 0.25s ease-in-out; opacity: 0.4; } .element.franklin { background: url('http://www.eduardmayer.de/codepen-css-resources/images/gta/franklin.jpeg') 45% 0 no-repeat; background-size: cover; } .element.michael { background: url('http://www.eduardmayer.de/codepen-css-resources/images/gta/michael.jpeg') 45% 0 no-repeat; background-size: cover; } .element.trevor { background: url('http://www.eduardmayer.de/codepen-css-resources/images/gta/trevor.jpeg') 45% 0 no-repeat; background-size: cover; } .element:last-of-type { margin: 0; } @media all and (min-width: 900px) { .pen { max-width: 890px; } .element { width: 286px; } .element.inactive { width: 246px; } .element.active { width: 366px; } .stage { max-width: 890px; height: 600px; } } @media all and (max-width: 660px) { .pen { max-width: 335px; } .element { width: 101px; } .element.inactive { width: 61px; } .element.active { width: 181px; } .stage { max-width: 335px; } } @-webkit-keyframes appear { 15% { opacity: 0; } 100% { opacity: 1; } } @-moz-keyframes appear { 15% { opacity: 0; } 100% { opacity: 1; } } @-o-keyframes appear { 15% { opacity: 0; } 100% { opacity: 1; } } @keyframes appear { 15% { opacity: 0; } 100% { opacity: 1; } }</style></head><body> <html lang="en"> <head> <meta charset="UTF-8"> <title>Responsive GTA V Slider</title> <meta author="Eduard Mayer"> </head> <body> <section class="pen"> <div class="stage"> <div class="element michael"></div> <div class="element franklin"></div> <div class="element trevor"></div> </div> </section> <section class="credit"> <p>Code by <a href="https://twitter.com/vsxed" target="_blank" class="credit-link">Eduard Mayer</a>, <a href="https://www.rockstargames.com/V/" target="_blank" class="credit-link">Original</a></p> <a href="https://github.com/vsxed/Responsive-GTA-V-Slider" target="_blank" class="credit-link button">Fork it on Github</a> </section> </body> </html> <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 > $('.element').each(function() { $(this).mouseover(function() { $(this).addClass('active'); $('.stage').children('.element').not('.active').addClass('inactive'); }); $(this).mouseleave(function() { $(this).removeClass('active'); $('.stage').children('.element').not('.active').removeClass('inactive'); }); }); //# sourceURL=pen.js </script> </body></html>

Related: See More


Questions / Comments: