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>Hello there!</p>
<br />
<p class="opponent">Hello there!</p>
              
            
!

CSS

              
                html
  font-size: 11pt
  
body
  text-align: center
  background: #f1f1f1
  
p

  font-size: 3rem
  position: relative
  display: inline-block
  padding: 1.5rem
  background: #00cc99
  color: #f6f6f6
  animation: bounce-in 1s 1
  transform-origin: left bottom
  
  &:after
    top: 88%
    left: 0
    position: absolute
    content: ''
    border: 1.5rem solid
    border-color: #00cc99 transparent transparent #00cc99
  
.opponent
  transform-origin: right top
  background: #ff5154
  &:after
    top: -35%
    left: auto
    right: 0
    border-color: transparent #ff5154 #ff5154 transparent
  
@keyframes bounce-in
  from, 20%, 40%, 60%, 80%, to
    animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000)
  0%
    opacity: 0
    transform: scale3d(.3, .3, .3)

  30%
    transform: scale3d(1.1, 1.1, 1.1)

  60%
    transform: scale3d(.9, .9, .9)

  70%
    opacity: 1
    transform: scale3d(1.03, 1.03, 1.03)

  80%
    transform: scale3d(.97, .97, .97)

  to
    opacity: 1
    transform: scale3d(1, 1, 1)
    
  
    
  
              
            
!

JS

              
                
              
            
!
999px

Console