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.


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.


    input#corners(type='checkbox' name='corners')
    label.option-label(for='corners') Rounded corners
    input#shadows(type='checkbox' name='shadows')
    label.option-label(for='shadows') Shadows


  font-family: sans-serif
  font-size: 12px
  margin: 0
  padding: 0
  display: flex
  align-items: center
  justify-items: center
  width: 100wv
  height: 100vh

  width: 60%
  max-width: 400px
  position: relative
  margin: -80px auto 0
  aspect-ratio: 7 / 5

.ps-photoset:hover .ps-photo
  transform: rotate(0deg)
.ps-photoset:hover .ps-photo:nth-child(1)
  left: 15vw
  top: 15vw
.ps-photoset:hover .ps-photo:nth-child(2)
  left: -15vw
  top: 5vw
.ps-photoset:hover .ps-photo:nth-child(3)
  left: 5vw
  top: -10vw
  width: 100%
  position: absolute
  top: 0
  left: 0
  transition: 300ms all ease
  transform: rotate(4deg)
  transform: rotate(3deg)
  transform: rotate(-3deg)

  position: absolute
  bottom: 20px
  left: 20px
  width: 100wv
  user-select: none
  z-index: 999
  background: rgba(255,255,255,0.67)
  border-radius: 1px

.ps-controls .block
  margin: 10px
  display: inline-block

.ps-controls .option-label
  padding: 12px 10px 10px 0
.ps-controls .option-label:hover
  cursor: pointer



                var bReady;

// This pauses the re-stacking until the expand animation is finished
  bReady = false;
    bReady = true;
  }, 300);  

  if (bReady == true){
    $(".ps-photo").css("z-index", "auto");
    $(this).css("z-index", "4");
  } else {
    // condole.log("stacking temporarily disabled")
// Controls
    $('.ps-photo').css("border-radius", "1.5vw");
  else if($(this).is(":not(:checked)")){
    $('.ps-photo').css("border-radius", "1px");
    $('.ps-photo').css("box-shadow", "3px 4px rgba(0,0,0,0.1)");
  else if($(this).is(":not(:checked)")){
    $('.ps-photo').css("box-shadow", "none");
    $('.ps-photo').css("border", "2px solid white");
  else if($(this).is(":not(:checked)")){
    $('.ps-photo').css("border", "none");