"card "
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/hugo/pen/HKGFb?depth=everything&limit=all&order=popularity&page=39&q=slider&show_forks=false" /> <link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css'><script src='https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js'></script><link rel='stylesheet prefetch' href='https://fonts.googleapis.com/css?family=Port+Lligat+Slab'> <style class="cp-pen-styles">section { bottom: 0; left: 0; margin: auto; position: absolute; right: 0; top: 0; } *, *:after, *:before { box-sizing: border-box; } html { background-color: #45484d; *zoom: 1; filter: progid:DXImageTransform.Microsoft.gradient(gradientType=1, startColorstr='#FF45484D', endColorstr='#FF000000'); background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PHJhZGlhbEdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgY3g9IjUwJSIgY3k9IiIgcj0iMTAwJSI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzQ1NDg0ZCIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzAwMDAwMCIvPjwvcmFkaWFsR3JhZGllbnQ+PC9kZWZzPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JhZCkiIC8+PC9zdmc+IA=='); background-size: 100%; background-image: -moz-radial-gradient(center, ellipse cover, #45484d 0%, #000000 100%); background-image: -webkit-radial-gradient(center, ellipse cover, #45484d 0%, #000000 100%); background-image: radial-gradient(ellipse cover at center, #45484d 0%, #000000 100%); font-family: 'Port Lligat Slab', serif; height: 100%; } section { background: black; box-shadow: 0 20px 15px -10px rgba(0, 0, 0, 0.6); height: 20rem; max-width: 45rem; overflow: hidden; width: 95%; } section h2 { font-size: 3rem; margin: 0.5rem; } section p { font-size: 1.3rem; } section:hover .slider-1 { right: -50%; } section:hover .slider-2 { left: 0%; } section:hover .slider-image { background: url("http://placekitten.com/280/300"); background-size: cover; background-position: center; left: 50%; } .slider-image { background: url("http://placekitten.com/280/400"); background-size: cover; height: 100%; position: absolute; left: 0; transition: 1s left ease-in-out,1s background ease-in-out; width: 50%; } .slider-1 { background: #ecf0f1; height: 100%; padding: 1rem 2rem 1rem 1rem; position: absolute; right: 0; top: 0; transition: 1s right ease-in-out; width: 50%; } .slider-1:before, .slider-1:after { border-right: 2rem solid #ecf0f1; border-top: 2rem solid transparent; border-bottom: 2rem solid transparent; content: ''; height: 15rem; left: -1rem; position: absolute; top: -4rem; width: 0; z-index: 5; } .slider-1:after { top: 9rem; } .slider-2 { background: #ecf0f1; height: 100%; position: absolute; left: -50%; padding: 1rem 1rem 1rem 2rem; top: 0; transition: 1s left ease-in-out; width: 50%; z-index: 5; } .slider-2:before, .slider-2:after { border-left: 2rem solid #ecf0f1; border-top: 2rem solid transparent; border-bottom: 2rem solid transparent; content: ''; height: 15rem; right: -1rem; position: absolute; top: -4rem; width: 0; z-index: 5; } .slider-2:after { top: 9rem; } </style></head><body> <section> <div class="slider-2"> <h2>Slide 2</h2> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. In itaque minus veniam reprehenderit illum assumenda omnis aperiam inventore excepturi tenetur rem consequuntur dolor iste nisi odit alias ad vero magnam.</p> </div> <div class="slider-image"> </div> <div class="slider-1"> <h2>Slide 1</h2> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. In itaque minus veniam reprehenderit illum assumenda omnis aperiam inventore excepturi tenetur rem consequuntur dolor iste nisi odit alias ad vero magnam.</p> </div> </section> <script src='//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> </body></html>

Related: See More


Questions / Comments: