"css 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/Siddharth11/pen/GgmgvP?depth=everything&limit=all&order=popularity&page=33&q=section&show_forks=false" /> <script src="https://s.codepen.io/assets/libs/modernizr.js" type="text/javascript"></script> <link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css'> <style class="cp-pen-styles">body { background-color: #2d2d2d; font-family: "Verdana"; } #wrapper { width: 500px; margin: 100px auto 0; color: #2d2d2d; } .section { margin: 0 auto; } .title_bar { background-color: #fff; width: 90%; margin: 0 auto; height: 50px; border: 1px solid rgba(0, 0, 0, 0.1); border-bottom: none; } #title_bar4 { border-bottom: 1px solid rgba(0, 0, 0, 0.1); } .button { cursor: pointer; width: 40px; height: 40px; float: right; position: relative; top: 5px; right: 5px; -webkit-transform: scale(0.5); transform: scale(0.5); } .one, .two { width: 30px; height: 4px; background-color: #2d2d2d; position: relative; margin: 0 auto; } .one { top: 18px; } .two { top: 14px; } .heading { text-transform: uppercase; float: left; position: relative; left: 25px; font-size: 1.3em; line-height: 50px; } .content_box { width: 100%; background-color: #fff; clear: both; display: none; overflow: hidden; border: 1px solid rgba(0, 0, 0, 0.1); } .content-wrapper { padding: 30px; font-size: 1em; } .active { position: relative; z-index: 5; } .active .title_bar { width: 100%; box-shadow: 0 0 10px #fff; } .active .content_box { display: block; width: 100%; box-shadow: 0 0 10px #fff; } </style></head><body> <div id="wrapper"> <div class="section active" id="section1"> <div class="title_bar" id="title_bar1"> <div class='heading'>heading 1</div> <div class='button'> <div class="one"></div> <div class="two"></div> </div> </div> <div class="content_box" id="content_box1"> <div class="content-wrapper"> Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nesciunt quos itaque iure porro ipsum illum nisi, quas, sunt earum est blanditiis, reiciendis voluptatem molestiae? Dolores, explicabo soluta necessitatibus accusamus! Quia. </div> </div> </div> <div class="section inactive" id="section2"> <div class="title_bar" id="title_bar2"> <div class='heading'>heading 2</div> <div class='button'> <div class="one"></div> <div class="two"></div> </div> </div> <div class="content_box" id="content_box2"> <div class="content-wrapper"> Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aperiam autem itaque porro ducimus doloremque? Iure enim perferendis totam ullam quibusdam vero velit ipsum! Vel, quam laudantium in numquam dignissimos laboriosam. </div> </div> </div> <div class="section inactive" id="section3"> <div class="title_bar" id="title_bar3"> <div class='heading'>heading 3</div> <div class='button'> <div class="one"></div> <div class="two"></div> </div> </div> <div class="content_box" id="content_box3"> <div class="content-wrapper"> Lorem ipsum dolor sit amet, consectetur adipisicing elit. Natus iste, amet labore officia vel totam, error blanditiis assumenda repudiandae autem pariatur minus cum repellendus sunt dicta illo consectetur corporis! Animi! </div> </div> </div> <div class="section inactive" id="section4"> <div class="title_bar" id="title_bar4"> <div class='heading'>heading 4</div> <div class='button'> <div class="one"></div> <div class="two"></div> </div> </div> <div class="content_box" id="content_box4"> <div class="content-wrapper"> Lorem ipsum dolor sit amet, consectetur adipisicing elit. Incidunt rem, sequi labore exercitationem animi, quibusdam dignissimos ab ipsam quam debitis magni recusandae quos, expedita hic! Dolores, consequatur sunt possimus cumque. </div> </div> </div> </div> <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 src='//cdnjs.cloudflare.com/ajax/libs/velocity/1.1.0/velocity.min.js'></script> <script >$('.button').click(function() { var thisButton = $(this); var wrapper = $('#wrapper'); var thisSection = thisButton.parents('.section'); var thisTitleBar = thisSection.children('.title_bar'); var thisContentBox = thisSection.children('.content_box'); if ($('body').hasClass('animating')) { return false; } else if (thisSection.hasClass('inactive')) { $('body').addClass('animating'); $('.active').find('.content_box').velocity('slideUp', { duration: 400, easing: 'swing' }); $('.active').find('.one').velocity({ rotateZ: '-180deg', }, { duration: 600, easing: 'swing' }); $('.active').find('.two').velocity({ rotateZ: '90deg', }, { duration: 600, easing: 'swing' }); $('.active').velocity({ opacity: '.75', }, { duration: 400, easing: 'swing', complete: function() { wrapper.children('.active').find('.title_bar').velocity({ width: '90%' }, { duration: 200, easing: 'swing' }); } }); thisTitleBar.find('.one').velocity({ rotateZ: '0deg', }, { duration: 600, easing: 'swing' }); thisTitleBar.find('.two').velocity({ rotateZ: '0deg', }, { duration: 600, easing: 'swing' }); thisTitleBar.parent().velocity({ opacity: '1' }, { duration: 400, easing: 'swing' }); thisTitleBar.velocity({ width: '100%' }, { duration: 200, easing: 'swing', complete: function() { thisContentBox.velocity('slideDown', { duration: 400, easing: 'swing', complete: function() { if (wrapper.children('.section').hasClass('active')) { wrapper.children('.section').removeClass('active').addClass('inactive'); } if (thisSection.hasClass('inactive')) { thisSection.removeClass('inactive').addClass('active'); } $('body').removeClass('animating'); } }); } }); } }); $(document).ready(function() { $('.active').velocity({ opacity: '1' }, { duration: 500 }); $('.active .two').velocity({ rotateZ: '0deg' }, { duration: 500 }); $('.inactive').velocity({ opacity: '0.75' }, { duration: 500 }); $('.inactive .two').velocity({ rotateZ: '90deg' }, { duration: 500 }); }); //# sourceURL=pen.js </script> </body></html>

Related: See More


Questions / Comments: