Pen Settings

HTML

CSS

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

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

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

              
                <p><span class="circle">Circle 3d</span>
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sed, ratione, alias? Velit ratione perspiciatis, architecto omnis quidem consequatur, amet excepturi, soluta iure atque assumenda tenetur porro repellendus sunt optio necessitatibus?
</p>




<p>
  <span class="circle -jank">Circle</span>
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sed, ratione, alias? Velit ratione perspiciatis, architecto omnis quidem consequatur, amet excepturi, soluta iure atque assumenda tenetur porro repellendus sunt optio necessitatibus?
</p>




              
            
!

CSS

              
                p
  font-family: helvetica
  color: #555
  line-height: 1.5
  margin-bottom: 100px
.circle
  background: red
  position: relative
  width: 100px
  height: 100px
  border-radius: 50%
  line-height: 100px
  text-align: center
  float: left
  animation: move 2s alternate ease-in-out infinite

  &.-jank
    animation-name: move-jank
    
@keyframes move
  0%
    transform: translate3d(-10vw, 0, 0) rotate(0deg) scale(1)
    filter: hue-rotate(0deg)

  100%
    transform: translate3d(80vw, 0, 0) rotate(360deg) scale(0.5)
    filter: hue-rotate(210deg)

@keyframes move-jank
  0%
    left: -10vw
    height: 50px
    width: 50px
    line-height: 50px
    font-size: 4px

  100%
    left: 80vw
              
            
!

JS

              
                
              
            
!
999px

Console