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

Packages

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.

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

              
                <p>The correct keyframe is being called because the text is green, but the text should render at 6rem.</p>
<p>This will render inconsistently. On some loads it works, but usually it doesn’t on both a desktop and in iOS.</p>

<h1>Hello world!</h1>

<p>What I see in Safari 12 on my Mac and iOS:</p>

<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/467/Screen%20Shot%202019-02-17%20at%204.17.14%20PM.png" alt="Green text that reads “Hello world!” with a green underline, but it appears too small" style="transform: scale(.5);transform-origin: 0 0;">

<p>This is what I expect to see:</p>

<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/467/Screen%20Shot%202019-02-17%20at%204.21.48%20PM.png" alt="Green text that reads “Hello world!” with a green underline, at the correct size" style="transform: scale(.5);transform-origin: 0 0;">
              
            
!

CSS

              
                h1 {
  font-size: 2rem;
  animation: h1 1s linear 1 -.5s paused;
  border-bottom: 1rem solid;
}

@keyframes h1 {
  0% {
    color: red;
  }
  50% {
    font-size: 6rem;
    border-bottom: 6rem solid; // To illustrate the issue isn’t limited to font-size
    color: green;
  }
  100% {
    color: blue;
  }
}


              
            
!

JS

              
                
              
            
!
999px

Console