Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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.


Auto Save

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.


  Choreographs two layers moving closer and further from the 'camera'. Hitchcock would have dollied and zoomed, we just translateZ.
  Lokesh Dhakar




$orig-width: 600px
$orig-height: 383px

$width: $orig-width * 1.25
$height: $orig-height * 1.25

  box-sizing: border-box

  position: absolute
  perspective: 400px
  width: $width
  height: $height
  overflow: hidden
  transform-style: preserve-3d
  transition: perspective 5s

  z-index: 10

  z-index: 5
  position: absolute
  top: 0
  left: 0
  width: $width
  height: $height
  transition: all 5s
  z-index: 10
  background-image: url(
  background-size: cover
  background-image: url(
  transform: translateZ(150px)  
  background-size: cover
    transform: translateZ(200px)
    transform: translateZ(0)
    filter: blur(4px)
    -webkit-filter: blur(4px)
  position: fixed
  top: 10px
  left: 10px
  z-index: 100

  width: 84px
  padding: 10px
  color: black
  font-weight: bold
  background: gold
  border: 2px solid black
  text-transform: uppercase
  cursor: pointer
  text-align: center
  outline: none
  border-radius: 4px
    background: lighten(gold, 10%)
    color: gold
    background: black


                $('button').on('click', function() {