"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/rauldronca/pen/apzLXr?depth=everything&order=popularity&page=53&q=box&show_forks=false" /> <link rel='stylesheet prefetch' href='https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600'><link rel='stylesheet prefetch' href='https://fonts.googleapis.com/css?family=Kaushan+Script'> <style class="cp-pen-styles">* { box-sizing: border-box; } *::before, *::after { box-sizing: border-box; } @-webkit-keyframes fadein { from { opacity: 0; } to { opacity: 1; } } @keyframes fadein { from { opacity: 0; } to { opacity: 1; } } html { height: 100%; width: 100%; } body { height: 100%; width: 100%; padding: 0px; margin: 0; font-family: "Source Sans Pro", sans-serif; background: -webkit-linear-gradient(left, #aeffd5 0%, #b8faf2 100%); background: linear-gradient(to right, #aeffd5 0%, #b8faf2 100%); } h2 { margin-top: 0; font-weight: 400; } .flex { min-height: 100vh; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; } .block { height: 200px; width: 200px; color: #FFF; border-top: 1px solid rgba(255, 255, 255, 0.1); border-bottom: 1px solid rgba(0, 0, 0, 0.1); text-align: center; line-height: 200px; font-size: 18px; position: relative; background: -webkit-linear-gradient(left, #644cad 0%, #4426a8 100%); background: linear-gradient(to right, #644cad 0%, #4426a8 100%); box-shadow: 0px 7px 28px -1px rgba(0, 0, 0, 0.75); -webkit-transition: 0.3s all ease; transition: 0.3s all ease; } .block .small-box { opacity: 0; -webkit-animation: fadein 2s forwards; animation: fadein 2s forwards; -webkit-animation-delay: 0.5s; animation-delay: 0.5s; display: flexx; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; -webkit-box-align: center; -ms-flex-align: center; align-items: center; font-family: "Kaushan Script", cursive; } .block .small-box h1 { margin: 0; } .block.expanded { -webkit-transition: 0.3s all ease; transition: 0.3s all ease; width: 800px; height: 400px; padding: 40px; line-height: normal; background: #24252A; background: -webkit-linear-gradient(left, #644cad 0%, #4426a8 100%); background: linear-gradient(to right, #644cad 0%, #4426a8 100%); } .block.expanded .small-box { display: none; } .block .content { text-align: left; display: none; opacity: 0; } .block .content h2 { font-family: "Kaushan Script", cursive; } .block .content p { line-height: 35px; } .block .content img { width: 300px; position: absolute; right: 0; } .block .content.display { -webkit-animation: fadein 2s forwards; animation: fadein 2s forwards; -webkit-animation-delay: 0.5s; animation-delay: 0.5s; display: block; } .block a { position: absolute; top: 0; bottom: 0; left: 0; right: 0; z-index: 2; } @media (max-width: 578px) { .block.expanded { height: 100%; } .block .content img { top: 0; right: 25px; width: 110px; } } </style></head><body> <div class="flex"> <div class="block"> <a href="#" class="toggle"></a> <div class="small-box"> <h1>Rogie King</h1> </div> <div class="content"> <h2>Rogie King</h2> <p>Rogie King is an illustrator, designer, and programmer who lives and works in the big sky state of Montana. He is the founder of Komodo Media and shares his love of illustration and all things Disney on his blog. Rogie is keen on hot sauce, trance music, and Star Wars. He is hopelessly in love with his wife, Toni, and their two young boys. In their spare time, they like to laugh, go on outdoor adventures, and take road trips.</p> <img src="https://d13yacurqjgara.cloudfront.net/users/255/screenshots/683315/attachments/61523/rogie.png"> </div> </div> </div> <script src='//production-assets.codepen.io/assets/common/stopExecutionOnTimeout-b2a7b3fe212eaa732349046d8416e00a9dec26eb7fd347590fbced3ab38af52e.js'></script><script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.0/jquery.min.js'></script> <script >$(".toggle").click(function() { $(".block").toggleClass("expanded"); $(".content").toggleClass("display"); }); // Created For Codepad.co // https://codepad.co/snippet/MbG8hlQu // Illustration - Rogie King // https://dribbble.com/shots/683315-Avatar-Tweakage //# sourceURL=pen.js </script> </body></html>

Related: See More


Questions / Comments: