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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                <div></div>
              
            
!

CSS

              
                // No Safari for this one

body
  height: 100vh
  display: flex
  justify-content: center
  align-items: flex-end
  background-color: #111
  background-image: linear-gradient(to top, #444 200px, transparent 200px)

div
  width: 150px
  height: 80px
  position: relative
  margin-left: -200px
  margin-bottom: 50px
  background-color: black
  background-image: linear-gradient(60deg, alpha(black,.7) 40%, transparent 50%),
                    linear-gradient(90deg, alpha(black,.5) 50%, transparent 80%),
                    radial-gradient(ellipse at 50% 100%, black 15%, transparent 15.5%),
                    radial-gradient(ellipse at 50% 100%, #777  25%, transparent 25.5%),
                    radial-gradient(ellipse at 50% 100%, black 42%, transparent 42.5%),
                    radial-gradient(ellipse at 50% 100%, #777  58%, transparent 58.5%)
  background-size: 100% 100%,
                   100% 100%,
                   250% 100%,
                   220% 100%,
                   170% 100%,
                   140% 100%
  background-position: center 100%
  border-radius: 50%
  border: 2px solid black

  &:before
    content: ''
    width: 100%
    height: 100%
    display: block
    position: absolute
    right: -200px
    background-color: black
    background-image: linear-gradient(60deg, alpha(black,.7) 40%, transparent 50%),
                      linear-gradient(90deg, alpha(black,.5) 50%, transparent 80%),
                      radial-gradient(ellipse at 50% 100%, black 15%, transparent 15.5%),
                      radial-gradient(ellipse at 50% 100%, #777  25%, transparent 25.5%),
                      radial-gradient(ellipse at 50% 100%, black 42%, transparent 42.5%),
                      radial-gradient(ellipse at 50% 100%, #777  58%, transparent 58.5%)
    background-size: 100% 100%,
                     100% 100%,
                     250% 100%,
                     220% 100%,
                     170% 100%,
                     140% 100%
    background-position: center 100%
    border-radius: 50%
    border: 2px solid black
    
    
  &:after
    content: ''
    width: 60px
    height: @width
    display: block
    position: absolute
    left: 75px
    top: 51px
    background-color: #ddd
    border-radius: 50%
    box-shadow: inset -10px 10px 10px alpha(midnightblue,.5)
    animation: fly 4400ms infinite
    animation-timing-function: cubic-bezier(0.1, .9, .77, 0.1)
    offset-path: path('M0,0 C70,-430 130,-420 200,0')
    offset-rotate: 90deg
 
@keyframes fly
  0%,
  50.5%
    opacity: 0
  51%
    opacity: 1
    offset-distance: 0%
  100%
    offset-distance: 100%
  
              
            
!

JS

              
                
              
            
!
999px

Console