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.

              <div class="wrapper">
  <div class="inner">
      <img src="http://lorempixel.com/200/200/nature" alt="Nature">
      <figcaption>Nature picture</figcaption>
      <img src="http://lorempixel.com/200/200/abstract" alt="Nature">
      <figcaption>Abstract image </figcaption>
      <img src="http://lorempixel.com/200/200/animals" alt="Nature">
      <figcaption>Animal photo</figcaption>
              @import "compass/css3";

@import url(http://fonts.googleapis.com/css?family=Source+Sans+Pro);

* {
  box-sizing: border-box;

body {
  font-size: 16px;

.wrapper {
  perspective: 1000px;
  margin: 4em auto; 
  width: 37em;

.wrapper:hover .inner {
  transform: rotate(0)

.inner {
  transition: .3s; 
  transform: rotateY(40deg);

.inner figure {
  box-shadow: -6px 6px 2px -3px  rgba(100,100,100,.1);
  width: 11em;
  padding: 1em;
  display: inline-block;
  margin-right: 1em;
  background: rgba(250,200,200,0.1);
  border: 1px solid rgba(250,200,200,.5);

.inner figcaption {
  text-align: center;
  margin: .5em 0;
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: bold;
  color: darken(tomato, 15%);

.inner img {
  display: block;
  height: auto;
  max-width: 100%;
  margin: 0 auto;
  -webkit-filter: sepia(75%);

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.


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