"product 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 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/dylanhobbs/pen/kXRVwr?depth=everything&order=popularity&page=55&q=product&show_forks=false" /> <style class="cp-pen-styles">@import url(https://fonts.googleapis.com/css?family=Roboto+Condensed:400,300,700); body { padding: 0; margin: 0; background-color: #fefefe; font-size: 16px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -moz-font-feature-settings: "liga" on; } .description { padding: 1em; } h3 { font-family: 'Lato'; color: white; letter-spacing: 0.08rem; font-weight: 700; } h3 span { font-weight: 900; } .description p { margin-top: -0.75em; font-size: 0.85em; color: white; font-weight: 300; width: 22vw; } p { font-family: 'Roboto Condensed', sans-serif; font-weight: 700; } .card-container { z-index: 1; margin: 0 auto; width: 80%; } .object { position: relative; border-radius: 2%; margin: 12vh auto; width: 33%; height: 70vh; background-color: #ff0; /* Old browsers */ background-image: -moz-linear-gradient(-45deg, #f96217 0%, #f2092a 100%); /* FF3.6-15 */ background-image: -webkit-linear-gradient(-45deg, #f96217 0%,#f2092a 100%); /* Chrome10-25,Safari5.1-6 */ background-image: linear-gradient(135deg, rgba(249, 98, 23, 0.75) 0%, rgba(249, 23, 23, 1) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */ background-blend-mode: multiply; transition: all 1s; } .object.expanded { background-color: #F91717; width: 60%; } .object .product.transition { transform: matrix(0.8, 0, 0, 0.8, 300, -220); will-change: transform; transition: all 1s ease-in-out; } .object .logo { width: 6vw; padding-top: 0.5em; padding-left: 1.5em; } .object .logo img { max-width: 100%; } .object .product { z-index: 10; position: absolute; width: 34vw; margin-left: -12vw; margin-top: 1vh; transition: all 1s ease-in-out; } .object .product img { max-width: 100%; } .hero p.title { position: absolute; font-size: 3em; top: 10.4%; font-size: 12em; z-index: 1; opacity: 0.12; transition: all 1s; } .button { z-index: 2; position: absolute; top: 55vh; left: 23vw; padding-top: 0.95em; padding-bottom: 0.75em; white-space: nowrap; background-image: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/477444/shopping-white.svg'); background-repeat: no-repeat; background-size: 45%; background-position: center; background-color: rgb(0, 194, 235); height: 1.7em; width: 3.5em; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,194,235,0.12), 0 1px 2px rgba(0,194,235,0.24); transition: all 0.5s; } .button:hover { box-shadow: 0 3px 6px rgba(0,194,235,0.16), 0 3px 6px rgba(0,194,235,0.23); } .button.expanded { width: 8em; height: 1.5em; left: 37vw; border-radius: 5px; text-align: center; padding-top: 0.95em; padding-bottom: 0.75em; transition: all 0.5s; background-image: none; } .button span { display: none; opacity: 0; white-space: nowrap; } .button.expanded span { display: initial; opacity: 1; color: white; font-family: 'Lato'; font-weight: 600; } .button.expanded .bold { font-weight: 900; }</style></head><body> <div class="card-container"> <div class="object"> <div class="logo"> <img src="https://s3-sa-east-1.amazonaws.com/testcodepens/nike-xxl.png" /> </div> <div class="description"> <h3>AIR STRUCTURE <span>16</span></h3> <p>Dynamic Support and Nike Zoom Air come together for a more supportive design with high-speed responsiveness.</p> </div> <a class="btn" href="#"> <div class="button"> <span>USD</span> <span class="bold">$179.99</span></span> </div> </a> <div class="product"> <img src="https://s3-sa-east-1.amazonaws.com/testcodepens/GxvMenZ.png" /> </div> <div class="hero"><p class="title">AIR</p</div> </div> </div> </div> <script src='//production-assets.codepen.io/assets/common/stopExecutionOnTimeout-b2a7b3fe212eaa732349046d8416e00a9dec26eb7fd347590fbced3ab38af52e.js'></script><script src='https://code.jquery.com/jquery-2.2.4.min.js'></script> <script >$(document).ready(function() { function removeClasses() { $('.object, .button').removeClass("expanded"); $('.product').removeClass("transition"); } function addClasses() { $('.object, .button').addClass("expanded"); $('.product').addClass("transition"); } $('html').on('DOMMouseScroll mousewheel', function expand(e) { if (e.originalEvent.detail > 0 || e.originalEvent.wheelDelta < 0) { console.log('down'); addClasses(); } else { removeClasses(); } }); $('.button').on('click', function(){ if ( $('.button').hasClass('expanded')){ removeClasses(); } else { addClasses(); } }); }); //# sourceURL=pen.js </script> </body></html>

Related: See More


Questions / Comments: