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="snip0053 yellow">
  <figcaption>
    <h2>Myron <span>Alvarez</span></h2>
    <p>I propose we leave math to the machines and go play outside.</p>
    <div class="icons">
      <a href="#"><i class="ion-ios-home"></i></a>
      <a href="#"><i class="ion-ios-email"></i></a>
      <a href="#"><i class="ion-ios-telephone"></i></a>
    </div>
  </figcaption>
  <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/331810/sample5.jpg" alt="sample5" />
  <div class="position">Managing Director</div>
</figure>
<figure class="snip0053 blue">
  <figcaption>
    <h2>Ivan <span>Phillips</span></h2>
    <p>Who wouldn't be interested in absolutely everything we try to do?!</p>
    <div class="icons">
      <a href="#"><i class="ion-ios-home"></i></a>
      <a href="#"><i class="ion-ios-email"></i></a>
      <a href="#"><i class="ion-ios-telephone"></i></a>
    </div>
  </figcaption>
  <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/331810/sample6.jpg" alt="sample6" />
  <div class="position">Graphic Designer</div>
</figure>
<figure class="snip0053 red">
  <figcaption>
    <h2>Henry <span>Jordan</span> </h2>
    <p>The real fun of living wisely is that you get to be smug about it.</p>
    <div class="icons">
      <a href="#"><i class="ion-ios-home"></i></a>
      <a href="#"><i class="ion-ios-email"></i></a>
      <a href="#"><i class="ion-ios-telephone"></i></a>
    </div>
  </figcaption>
  <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/331810/sample7.jpg" alt="sample7" />
  <div class="position">Reseptionist</div>
</figure>
            
          
!
            
              @import url(https://fonts.googleapis.com/css?family=Raleway:400,200,300,800);
@import url(https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css);
figure.snip0053 {
  font-family: 'Raleway', Arial, sans-serif;
  position: relative;
  float: left;
  overflow: hidden;
  margin: 10px 1%;
  min-width: 220px;
  max-width: 310px;
  width: 100%;
  background: #ffffff;
  color: #000000;
}

figure.snip0053 * {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

figure.snip0053 > img {
  width: 100%;
}

figure.snip0053 figcaption {
  padding: 20px 30px 20px 25%;
  position: relative;
}

figure.snip0053 figcaption h2,
figure.snip0053 figcaption p {
  margin: 0;
  text-align: right;
  padding: 10px 0;
  right: 0;
  width: 100%;
}

figure.snip0053 figcaption h2 {
  font-size: 1.3em;
  font-weight: 300;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

figure.snip0053 figcaption h2 span {
  font-weight: 800;
}

figure.snip0053 figcaption p {
  font-size: 0.9em;
  opacity: 0.8;
}

figure.snip0053 figcaption .icons {
  width: 100%;
  text-align: right;
}

figure.snip0053 figcaption .icons i {
  font-size: 26px;
  padding: 5px;
  top: 50%;
  color: #000000;
}

figure.snip0053 figcaption a {
  opacity: 0.3;
  -webkit-transition: opacity 0.35s;
  transition: opacity 0.35s;
}

figure.snip0053 figcaption a:hover {
  opacity: 0.8;
}

figure.snip0053 .position {
  width: 100%;
  text-align: right;
  padding: 8px 30px 13px;
  font-size: 0.8em;
  opacity: 0.8;
  font-style: italic;
}

figure.snip0053:after {
  position: absolute;
  top: 0;
  left: -20%;
  height: 110%;
  width: 30%;
  background-color: #000000;
  content: '';
  border-right: 4px solid #666666;
  -webkit-transform: skewX(-7deg) translateX(0px);
  transform: skewX(-7deg) translateX(0px);
  -webkit-backface-visibility: hidden;
  -webkit-transition: -webkit-transform 0.35s;
  transition: -webkit-transform 0.35s, -moz-transform 0.35s, -o-transform 0.35s, transform 0.35s;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

figure.snip0053.blue:after {
  background-color: #1b557a;
  border-right: 4px solid #2472a4;
}

figure.snip0053.red:after {
  background-color: #81261d;
  border-right: 4px solid #ab3326;
}

figure.snip0053.yellow:after {
  background-color: #a85913;
  border-right: 4px solid #d67118;
}

figure.snip0053.green:after {
  background-color: #19703e;
  border-right: 4px solid #229955;
}

figure.snip0053:hover:after,
figure.snip0053.hover:after {
  -webkit-transform: skewX(-7deg) translateX(10px);
  transform: skewX(-7deg) translateX(10px);
}
            
          
!
            
              /* Demo purposes only */	
$("figure").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