cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmlicon-personicon-teamoctocatspinnerstartv

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="snip1367"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/331810/sample85.jpg" alt="sample85"/>
  <figcaption>
    <h3>Eric Widget</h3>
  </figcaption><a href="#"></a>
</figure>
<figure class="snip1367"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/331810/sample38.jpg" alt="sample38"/>
  <figcaption>
    <h3>Ammie Pigeon</h3>
  </figcaption><a href="#"></a>
</figure>
<figure class="snip1367"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/331810/sample54.jpg" alt="sample54"/>
  <figcaption>
    <h3>Fig Nelson</h3>
  </figcaption><a href="#"></a>
</figure>
            
          
!
            
              @import url(https://fonts.googleapis.com/css?family=Roboto:900);
.snip1367 {
  font-family: 'Roboto', Arial, sans-serif;
  position: relative;
  float: left;
  overflow: hidden;
  margin: 10px 1%;
  min-width: 230px;
  max-width: 315px;
  width: 100%;
  color: #ffffff;
  font-size: 16px;
  background-color: #b06f09;
  transform: translateZ(0);
  background-image: -webkit-linear-gradient(bottom, rgba(0, 0, 0, 0.5) 0%, transparent 100%);
  background-image: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 100%);
}
.snip1367 * {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-transition: all 0.35s ease-in;
  transition: all 0.35s ease-in;
}
.snip1367 img {
  max-width: 100%;
  vertical-align: top;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
  -webkit-transform-origin: 100% 0;
  -ms-transform-origin: 100% 0;
  transform-origin: 100% 0;
}
.snip1367 figcaption {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: -1;
}
.snip1367 h3 {
  -webkit-transform-origin: 100% 100%;
  -ms-transform-origin: 100% 100%;
  transform-origin: 100% 100%;
  font-size: 1.8em;
  padding: 0 0 20px 0;
  margin: 0 20px 0 0;
  font-weight: 900;
  text-align: right;
  -webkit-transform: rotate(-57deg);
  transform: rotate(-57deg);
}
.snip1367 a {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
}
.snip1367:hover img,
.snip1367.hover img {
  -webkit-animation: snip1367 1s linear forwards;
  animation: snip1367 1s linear forwards;
  -webkit-animation-iteration-count: 1;
  animation-iteration-count: 1;
}
@-webkit-keyframes snip1367 {
  32% {
    -webkit-transform: rotate(-72deg);
    transform: rotate(-72deg);
  }
  50% {
    -webkit-transform: rotate(-50deg);
    transform: rotate(-50deg);
  }
  70% {
    -webkit-transform: rotate(-58deg);
    transform: rotate(-58deg);
  }
  85% {
    -webkit-transform: rotate(-56deg);
    transform: rotate(-56deg);
  }
  100% {
    -webkit-transform: rotate(-57deg);
    transform: rotate(-57deg);
  }
}
@keyframes snip1367 {
  32% {
    -webkit-transform: rotate(-72deg);
    transform: rotate(-72deg);
  }
  50% {
    -webkit-transform: rotate(-50deg);
    transform: rotate(-50deg);
  }
  70% {
    -webkit-transform: rotate(-58deg);
    transform: rotate(-58deg);
  }
  85% {
    -webkit-transform: rotate(-56deg);
    transform: rotate(-56deg);
  }
  100% {
    -webkit-transform: rotate(-57deg);
    transform: rotate(-57deg);
  }
}
/* Demo purposes only */
body {
  background-color: #212121;
}

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

            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console