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.


                <html lang="en">
  <meta charset="UTF-8" />
  <div class="cd"></div>
  <div class="music"></div>
  <audio src="" autoplay="autoplay" loop="loop"></audio>



  position: relative
  box-sizing: border-box
  width: 100px
  height: 100px
  margin: 150px auto
  color: #666
  border-radius: 50%
  border: 10px solid rgba(0,0,0,0)
  box-shadow: 0 0 0 4px rgba(247, 247, 247, 0.53) , 0 0 0 100px rgba(22, 24, 24, 0.81), 0 0 0 104px rgba(247, 247, 247, 0.67), 0 0 10px 104px rgba(0, 0, 0, 0.64), 0 0 0 60px rgba(27, 27, 27, 0.79) inset, 0 0 10px 60px rgba(0, 0, 0, 0.73) inset
  animation: spinner 10s linear 0s infinite 
    content: "晴天"
    position: absolute
    top: -75px
    width: 100%
    color: #fff
    text-align: center
    font-size: 30px
    font-weight: bold
    text-shadow: 0 0 40px #000, 0 -1px 0 #f3f3f3, 0 -2px 0 #f3f3f3
    content: "Copyright © 2016 Kieran. \A All rights reserved."
    position: absolute
    top: 125px
    margin-left: -40px
    white-space: pre
    word-wrap: break-word
    font-size: 13px
    text-align: center
    color: rgba(255, 255, 255, 0.81)
    text-shadow: 0 0 15px #000
@keyframes spinner
    transform: rotate(0deg)
    transform: rotate(360deg)
  position: absolute
  width: 0
  top: 250px
  left: 0
  right: 0
  margin: auto
    content: "♫"
    position: absolute
    opacity: 0
    left: -220px
    font-size: 40px
    animation: music 2.5s infinite ease
    content: "♪"
    position: absolute
    opacity: 0
    left: 180px
    font-size: 40px
    animation: music 3.3s infinite ease
@keyframes music
    opacity: 0
    transform: translate(0px,50px)
    transform: rotate(12deg) translate(-30px,0px)
    opacity: 1
    transform: rotate(-12deg) translate(30px,-100px)
    opacity: 0
    transform: rotate(0deg) translate(0px,-200px)