"card img hover"
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 ----------> <figure class="snip1166"> <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/331810/sample74.jpg" alt="sample74"/> <figcaption> <h3>Max Conversion </h3> <div> <p>Your own mileage may vary. </p> </div><a href="#"></a> </figcaption> </figure> <figure class="snip1166 navy hover"> <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/331810/sample72.jpg" alt="sample72"/> <figcaption> <h3>Indigo Violet</h3> <div> <p>Trust me. I know what I'm doing.</p> </div><a href="#"></a> </figcaption> </figure> <figure class="snip1166 red"> <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/331810/sample73.jpg" alt="sample73"/> <figcaption> <h3>Richard Tea</h3> <div> <p>We live, in a very kooky time.</p> </div><a href="#"></a> </figcaption> </figure>
@import url(https://fonts.googleapis.com/css?family=Raleway:400,500,800); figure.snip1166 { font-family: 'Raleway', Arial, sans-serif; color: #fff; position: relative; float: left; margin: 10px 1.5%; min-width: 210px; max-width: 300px; max-height: 220px; width: 100%; background: #ffffff; color: #000000; text-align: left; } figure.snip1166 * { -webkit-box-sizing: padding-box; box-sizing: padding-box; -webkit-transition: all 0.6s ease; transition: all 0.6s ease; } figure.snip1166 img { opacity: 1; width: 100%; vertical-align: top; -webkit-transition: opacity 0.4s; transition: opacity 0.4s; } figure.snip1166 figcaption { position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; } figure.snip1166 figcaption > div { height: 70%; overflow: hidden; width: 100%; position: absolute; bottom: 0; } figure.snip1166 h3, figure.snip1166 p { margin: 0; position: absolute; right: 0; } figure.snip1166 h3 { padding: 0 30px 0 15px; color: #ffffff; background-color: #1a1a1a; display: inline-block; font-weight: 400; line-height: 40px; text-transform: uppercase; top: 30%; right: 0; left: 30px; z-index: 1; -webkit-transform: translateY(-50%); transform: translateY(-50%); } figure.snip1166 h3 span { font-weight: 400; } figure.snip1166 h3:after, figure.snip1166 h3:before { border-style: solid; content: ''; position: absolute; left: 100%; } figure.snip1166 h3:after { border-width: 40px 0 0 12px; border-color: transparent transparent transparent #1a1a1a; top: 0; } figure.snip1166 h3:before { border-width: 12px 12px 0 0; border-color: #000000 transparent transparent transparent; top: 100%; } figure.snip1166 p { padding: 8px 45px; opacity: 0; font-size: 0.9em; font-weight: 500; left: 0; -webkit-transform: translate3d(0%, -150%, 0); transform: translate3d(0%, -150%, 0); -webkit-transition-delay: 0s; transition-delay: 0s; } figure.snip1166 a { left: 0; right: 0; top: 0; bottom: 0; position: absolute; } figure.snip1166.blue h3 { background-color: #2980b9; } figure.snip1166.blue h3:after { border-color: transparent transparent transparent #2980b9; } figure.snip1166.blue h3:before { border-color: #123851 transparent transparent transparent; } figure.snip1166.red h3 { background-color: #c0392b; } figure.snip1166.red h3:after { border-color: transparent transparent transparent #c0392b; } figure.snip1166.red h3:before { border-color: #581a14 transparent transparent transparent; } figure.snip1166.green h3 { background-color: #27ae60; } figure.snip1166.green h3:after { border-color: transparent transparent transparent #27ae60; } figure.snip1166.green h3:before { border-color: #104627 transparent transparent transparent; } figure.snip1166.orange h3 { background-color: #e67e22; } figure.snip1166.orange h3:after { border-color: transparent transparent transparent #e67e22; } figure.snip1166.orange h3:before { border-color: #7b410e transparent transparent transparent; } figure.snip1166.navy h3 { background-color: #34495e; } figure.snip1166.navy h3:after { border-color: transparent transparent transparent #34495e; } figure.snip1166.navy h3:before { border-color: #07090c transparent transparent transparent; } figure.snip1166:hover img, figure.snip1166.hover img { opacity: 0.3; -webkit-filter: grayscale(100%); filter: grayscale(100%); } figure.snip1166:hover figcaption h3, figure.snip1166.hover figcaption h3 { -webkit-transform: translateY(-100%); transform: translateY(-100%); } figure.snip1166:hover figcaption p, figure.snip1166.hover figcaption p { opacity: 0.8; -webkit-transform: translateY(0); transform: translateY(0); }
/* Demo purposes only */ $(".hover").mouseleave( function () { $(this).removeClass("hover"); } );

Related: See More


Questions / Comments:

This card is sweet

undisputedking (-1) - 9 months ago - Reply 0