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.


                <h1>This is cute.</h1>



                /* Step 1: Make the font request! Grab your font from Google fonts, make sure it’s a variable font. Uses the new css2 endpoint. Find your chosen fonts full weight range, seperate values with .. and don’t forget to prefix with :wght@ syntax  */
@import url('');

/* Step 2: Add the font wherever you want to use it */
body {
  font-family: 'Inter', sans-serif;
  font-size: 13vw;
  font-weight: 100;

/* Step 3: Set up keyframes to interpolate through variable weights */
@keyframes animate-type {
  0% {
    font-variation-settings: "wght" 500, "slnt" 0;
  100% {
    font-variation-settings: "wght" 900, "slnt" 0;

/* Step 4: apply the animation to our element, make it infinite, scale up and down */
h1 {
  animation: animate-type 4.5s infinite alternate;

/* Step 5: go have some fun with it! */


                /* Learn more at and */