cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmlicon-personicon-teamoctocatpop-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="snip1377">
  <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/331810/sample69.jpg" alt="sample69" />
  <figcaption>
    <h3>Pelican Steve</h3>
  </figcaption>
  <a href="#"></a>
</figure>
<figure class="snip1377 hover"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/331810/sample92.jpg" alt="sample92" />
  <figcaption>
    <h3>Tom Gordon</h3>
  </figcaption>
  <a href="#"></a>
</figure>
<figure class="snip1377"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/331810/sample70.jpg" alt="sample70" />
  <figcaption>
    <h3>Eleanor Fant</h3>
  </figcaption>
  <a href="#"></a>
</figure>
            
          
!
            
              @import url(https://fonts.googleapis.com/css?family=Roboto:900);
.snip1377 {
  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%);
}
.snip1377 * {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-transition: all 0.35s ease-in;
  transition: all 0.35s ease-in;
}
.snip1377 img {
  max-width: 100%;
  vertical-align: top;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
  -webkit-transform-origin: 100% 100%;
  -ms-transform-origin: 100% 100%;
  transform-origin: 100% 100%;
}
.snip1377 figcaption {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: -1;
}
.snip1377 h3 {
  -webkit-transform-origin: 100% 0;
  -ms-transform-origin: 100% 0;
  transform-origin: 100% 0;
  font-size: 1.8em;
  padding: 50px 0 0 0;
  margin: 0;
  font-weight: 900;
  position: absolute;
  bottom: 0px;
  right: 0px;
  -webkit-transform: rotate(57deg);
  transform: rotate(57deg);
}
.snip1377 a {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
}
.snip1377:hover img,
.snip1377.hover img {
  -webkit-animation: snip1377 1s linear;
  animation: snip1377 1s linear;
  -webkit-animation-iteration-count: 1;
  animation-iteration-count: 1;
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
}
@-webkit-keyframes snip1377 {
  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 snip1377 {
  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