Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


  <h1>Pretty Nifty Little Mockup Showcase</h1>
  <div class="button-wrap">
    <button id="1">Left</button>
    <button id="2">Middle</button>
    <button id="3">Right</button>

  <div class="center">
    <div class="first mockup"><img src="" alt="" /></div>
    <div class="second mockup"><img src=" 3.png" alt="" /></div>
    <div class="third mockup"><img src=" 2.png" alt="" /></div>
    <div class="clear-fix"></div>


                @import "compass/css3";

body {
  background-color: #1e5799; // Old browsers
  @include filter-gradient(#1e5799, #7db9e8, horizontal); // IE6-9 fallback on horizontal gradient
  @include background-image(radial-gradient(center, ellipse cover,  #1e5799 0%,#2989d8 50%,#7db9e8 100%));
  font-family: Arial, sans-serif;
  color: #fff;
  text-align: center;
.button-wrap {
  width: 630px;
  margin: 0 auto;
  button {
    background: #0187bc;
    color: #fff;
    border: 0;
    font-size: 1em;
    height: 50px;
    width: 200px;
    text-transform: uppercase;
    outline: none;

.center {
  margin: 20px auto;
  padding-top: 50px;
  width: 1200px;
  display: block;
  float: none;
  perspective: 1400px;

    background-size: 100% 100%;
    box-shadow: -35px 2px 20px rgba(0,0,0, 0.7);
    float: left;
    margin: 0 -90px;
    height: 568px;
    width: 320px;
    transform-style: preserve-3d;
    transition: .5s linear;

      img {
        height: inherit;
  &:after, &:before {
  content: '';
  position: absolute;
  /*100% height and width*/
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  transition: .5s linear;
   &:before {
  transform-origin: left center;
  transform: rotateY(90deg);
  width: 5px;    
    &.focused {
      box-shadow: -5px 2px 10px #000;
      perspective: 2000;
      margin: 0 100px;
      transform: rotateY(0deg);
      transition: .5s linear;
  &.first {
      background: url('');
  &.second {
    background: url(' 3.png');
  &.third {
    background: url(' 2.png');    

.clear-fix {
  clear: both;