cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

            
              <figure class="snip1421">
  <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/331810/sample99.jpg" alt="sample99" />
  <figcaption>
    <h2>Jason Response</h2>
    <p>Dad buried in landslide! Jubilant throngs fill streets! Stunned father inconsolable - demands recount!</p>
    <div class="icons"><a href="#"><i class="ion-chatbubbles"></i></a>
      <a href="#"> <i class="ion-person-add"></i></a>
      <a href="#"> <i class="ion-heart"></i></a>
    </div>
  </figcaption>
</figure>
<figure class="snip1421 hover"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/331810/sample45.jpg" alt="sample45" />
  <figcaption>
    <h2>Dean Druid</h2>
    <p>But Calvin is no kind and loving god! He's one of the old gods! He demands sacrifice!</p>
    <div class="icons"><a href="#"><i class="ion-chatbubbles"></i></a>
      <a href="#"> <i class="ion-person-add"></i></a>
      <a href="#"> <i class="ion-heart"></i></a>
    </div>
  </figcaption>
</figure>
<figure class="snip1421"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/331810/sample22.jpg" alt="sample22" />
  <figcaption>
    <h2>Rodney Artichoke</h2>
    <p>That's the problem with nature, something's always stinging you or oozing mucous all over you.</p>
    <div class="icons"><a href="#"><i class="ion-chatbubbles"></i></a>
      <a href="#"> <i class="ion-person-add"></i></a>
      <a href="#"> <i class="ion-heart"></i></a>
    </div>
  </figcaption>
</figure>
            
          
!
            
              @import url(https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,500,900);
figure.snip1421 {
  font-family: 'Source Sans Pro', Arial, sans-serif;
  position: relative;
  float: left;
  overflow: hidden;
  margin: 10px 1%;
  min-width: 230px;
  max-width: 315px;
  max-height: 220px;
  width: 100%;
  color: #ffffff;
  text-align: center;
  font-size: 16px;
}
figure.snip1421 * {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-transition: all 0.35s ease;
  transition: all 0.35s ease;
}
figure.snip1421 img {
  opacity: 1;
  width: 100%;
}
figure.snip1421:after,
figure.snip1421:before,
figure.snip1421 figcaption:after,
figure.snip1421 figcaption:before {
  background: #0a0a0a;
  width: 25%;
  position: absolute;
  content: '';
  opacity: 0;
  -webkit-transition: all 0.3s steps(4);
  transition: all 0.3s steps(4);
  z-index: 1;
  top: 50%;
  bottom: 50%;
}
figure.snip1421:before {
  left: 0;
  -webkit-transition-delay: 0.3s;
  transition-delay: 0.3s;
}
figure.snip1421:after {
  left: 25%;
  -webkit-transition-delay: 0.2s;
  transition-delay: 0.2s;
}
figure.snip1421 figcaption:before {
  left: 50%;
  -webkit-transition-delay: 0.1s;
  transition-delay: 0.1s;
  z-index: -1;
}
figure.snip1421 figcaption:after {
  left: 75%;
  -webkit-transition-delay: 0;
  transition-delay: 0;
  z-index: -1;
}
figure.snip1421 figcaption {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 30px;
}
figure.snip1421 h2,
figure.snip1421 p,
figure.snip1421 .icons {
  margin: 0;
  width: 100%;
  opacity: 0;
}
figure.snip1421 h2 {
  font-weight: 900;
  text-transform: uppercase;
}
figure.snip1421 p {
  font-weight: 300;
}
figure.snip1421 .icons {
  position: absolute;
  bottom: 30px;
  left: 0;
  width: 100%;
}
figure.snip1421 i {
  padding: 0px 10px;
  display: inline-block;
  font-size: 24px;
  color: #ffffff;
  text-align: center;
  opacity: 0.8;
}
figure.snip1421 i:hover {
  opacity: 1;
}
figure.snip1421:hover:after,
figure.snip1421.hover:after,
figure.snip1421:hover:before,
figure.snip1421.hover:before,
figure.snip1421:hover figcaption:after,
figure.snip1421.hover figcaption:after,
figure.snip1421:hover figcaption:before,
figure.snip1421.hover figcaption:before {
  top: 0;
  bottom: 0;
  opacity: 0.8;
}
figure.snip1421:hover figcaption h2,
figure.snip1421.hover figcaption h2,
figure.snip1421:hover figcaption p,
figure.snip1421.hover figcaption p,
figure.snip1421:hover figcaption .icons,
figure.snip1421.hover figcaption .icons {
  -webkit-transition-delay: 0.35s;
  transition-delay: 0.35s;
}
figure.snip1421:hover figcaption h2,
figure.snip1421.hover figcaption h2,
figure.snip1421:hover figcaption .icons,
figure.snip1421.hover figcaption .icons {
  opacity: 1;
}
figure.snip1421:hover figcaption p,
figure.snip1421.hover figcaption p {
  opacity: 0.7;
}
/* Demo purposes only */
body {
  background-color: #212121;
}

            
          
!
            
              /* Demo purposes only */
$(".hover").mouseleave(
  function () {
    $(this).removeClass("hover");
  }
);

            
          
!
999px
Loading ..................

Console