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


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.


                <p id=citizen-kane>In Orson Well's <cite>Citizen Kane</cite>, Charles Foster Kane utters the word "Rosebud" the moment before he dies, preciptating an investigation that explores the character's driven psyche and tempestuous life while never answering the central mystery. The truth is revealed to the audience at the very end of the movie: <span class=spoiler>"Rosebud" is the name of Kane's most beloved toy from childhood, a wooden sled.</span>


                p#citizen-kane {
  font-family: American Typewriter, Consolas, Courier New, Courier, sans-serif;
  font-size: 1.6rem;
  padding: 2.2rem;
  line-height: 1.5;
span.spoiler {
  text-shadow: 0 0 8px #000;
  color: rgba(255, 255, 255, 0);
  margin-left: 0;
  padding: 2.6rem;
  filter: DXImageTransform.Microsoft.Blur(pixelradius=2);
  zoom: 1;
  pause-before: 2s;
  transition: 1s text-shadow linear;

span.spoiler:hover {
  text-shadow: none;
  color: #000;
  filter: none;