Pen Settings

HTML

CSS

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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

Behavior

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.

HTML

              
                <div class="quote">
  <blockquote>
    <p>Ever tried. Ever failed. No matter.<br>Try again. Fail again. Fail better.</p>
    <cite>Samuel Beckett</cite>
  </blockquote>
</div>

<div class="animated-border-quote">
  <blockquote>
    <p>The world always seems brighter when you’ve just made something that wasn’t there before.</p>
    <cite>Neil Gaiman</cite>
  </blockquote>
</div>

<div class="animated-shadow-quote">
  <blockquote>
    <p>I am always doing that which I can not do, in order that I may learn how to do it.</p>
    <cite>Pablo Picasso</cite>
  </blockquote>
</div>

<div class="square-brackets-quote">
  <blockquote>
    <p>True knowledge exists in knowing that you know nothing.</p>
    <cite>Socrates</cite>
  </blockquote>
</div>

<div class="giant-quotes-quote">
  <blockquote>
    <p>It’s not bragging if you can back it up.</p>
    <cite>Muhammad Ali</cite>
  </blockquote>
</div>
              
            
!

CSS

              
                $bg: #fff;

.quote {
  display:inline-block;
  margin:1em;
  overflow:hidden;
  blockquote {
    background-color:$bg;
    border: solid 2px #757575;
    display: inline-block;
    margin: 0;
    padding: 1em;
    position: relative;
    &:before {
      background-color: $bg;
      bottom: -10%;
      content: "";
      left: 0;
      position: absolute;
      right: 0;
      top: -10%;
      transform: rotate(-15deg) skew(5deg);
    }
    cite {
      display: block;
      font-style: italic;
      text-align: right;
      &:before {
        content: "- ";
      }
    }
    > * {
      position: relative;
      z-index: 1;
    }
  }
}

.animated-border-quote {
  display:inline-block;
  margin:1em;
  max-width:20em;
  overflow:hidden;
  blockquote {
    background-color:$bg;
    border: solid 2px #757575;
    display: inline-block;
    margin: 0;
    padding: 1em;
    position: relative;
    &:before {
      animation:clockwise 30s infinite linear;
      background-color: $bg;
      bottom:10%;
      content: "";
      left: 0;
      opacity:.5;
      position: absolute;
      right: 0;
      top:10%;
    }
    &:after {
      animation:counter 30s infinite linear;
      background-color: $bg;
      bottom:10%;
      content: "";
      left: 0;
      opacity:.5;
      position: absolute;
      right: 0;
      top:10%;
    }
    cite {
      display: block;
      font-style: italic;
      text-align: right;
      &:before {
        content: "- ";
      }
    }
    > * {
      position: relative;
      z-index: 1;
    }
  }
}

@keyframes clockwise {
  0% {
    transform:rotate(0);
  }
  100% {
    transform:rotate(360deg);
  }
}

@keyframes counter {
  0% {
    transform:rotate(0);
  }
  100% {
    transform:rotate(-360deg);
  }
}

.animated-shadow-quote {
  display:inline-block;
  margin:1em;
  max-width:20em;
  position:relative;
  blockquote {
    animation:shadows 2s linear infinite alternate;
    display:inline-block;
    margin:0;
    padding:1em;
    cite {
      display: block;
      font-style: italic;
      text-align: right;
      &:before {
        content: "- ";
      }
    }
  }
}

@keyframes shadows {
  0% {
    box-shadow:0 2px 4px -2px rgba(0,0,0,.25);
    transform:scale(.95);
  }
  100% {
    box-shadow:0 0 4px 2px rgba(0,0,0,.25);
    transform:scale(1);
  }
}

.square-brackets-quote {
  display:inline-block;
  font-family:sans-serif;
  margin:1em;
  max-width:20em;
  blockquote {
    border:solid 1em #ccc;
    display:inline-block;
    margin:0;
    padding:1em;
    position:relative;
    &:before {
      background-color: $bg;
      bottom: -1em;
      content: "";
      left: 2em;
      position: absolute;
      right: 2em;
      top: -1em;
    }
    cite {
      color:#757575;
      display: block;
      font-size:small;
      font-style: normal;
      text-align: right;
      text-transform:uppercase;
    }
    > * {
      position: relative;
      z-index: 1;
    }
  }
}

.giant-quotes-quote {
  display:inline-block;
  font-family:sans-serif;
  margin:1em;
  max-width:20em;
  blockquote {
    display:inline-block;
    margin:0;
    padding:1em;
    position:relative;
    &:before {
      color:#f90;
      content:"\201C";
      font-size:4em;
      left:0;
      line-height:.75em;
      position:absolute;
      top:0;
      transform:scale(2, 8);
      transform-origin:top;
    }
    &:after {
      color:#f90;
      content:"\201D";
      font-size:4em;
      line-height:.75em;
      position:absolute;
      right:0;
      top:0;
      transform:scale(2, 8);
      transform-origin:top;
    }
    > * {
      padding:0 2em;
    }
    cite {
      color:#c60;
      display: block;
      font-style: normal;
      text-align: right;
      text-transform:uppercase;
    }
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console