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.


                <div class="card">
    <source srcset="" media="(min-width: 100px)" />
    <img src="" class="Sample image" />
  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.</p>


                /* In order to fully appreciate this demo, you'll need to throttle your connection */

/* Animated placeholder background */
picture {
  background: #8a898f;
  background-image: radial-gradient(circle, #fff, #fff 6px, #8a898f 7px);
  background-size: 9% 20%;
  background-position: center;
  animation-name: breathingDots;
  animation-duration: 2.5s;
  animation-iteration-count: 2; /* Don't last longer than 5s total! */

@keyframes breathingDots {
  0% {
    background-size: 9% 20%;
  50% {
    background-size: 11% 22%;
  100% {
    background-size: 9% 20%;

/* Intrinsic placeholder approach from */
picture {
  display: block;
  position: relative;
  width: 100%;
  padding-top: 50%;

picture img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

/* Set-up styling (not key to the approach illustrated here) */
.card {
  margin: 2em auto;
  width: 30em;
  font: 1em/1.4 "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;