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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

              
                <div class="container">
  <div class="moon">
  </div>
  <div class="carrot">
    <div class="leave"></div>
    <div class="root"></div>
  </div>
  <div class="carrot">
    <div class="leave"></div>
    <div class="root"></div>
  </div>
  <div class="carrot">
    <div class="leave"></div>
    <div class="root"></div>
  </div>
</div>
              
            
!

CSS

              
                body {
  padding: 0;
  margin: 0;
  background-color: #0F3057;
}
.container {
  padding: 50px;
  width: 100%;
  height: 100%;
  position: relative;
}
.moon {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  display: inline-block;
  background: radial-gradient(30px circle at 100px 100px,
    #CDD0CB 50%,
    transparent 51%),
    radial-gradient(40px circle at 170px 150px,
      #CDD0CB 50%,
      transparent 51%),
    radial-gradient(25px circle at 120px 5px,
      #CDD0CB 50%,
      transparent 51%),
    radial-gradient(25px circle at 120px 5px,
      #CDD0CB 50%,
      transparent 51%),
    radial-gradient(20px circle at 42px 165px,
      #CDD0CB 50%,
      transparent 51%),
    radial-gradient(40px circle at 165px 40px,
      #CDD0CB 50%,
      transparent 51%),
    radial-gradient(60px circle at 15px 110px,
      #CDD0CB 50%,
      transparent 51%),
    radial-gradient(10px circle at 130px 180px,
      #CDD0CB 50%,
      transparent 51%),
    radial-gradient(20px circle at 70px 30px,
      #CDD0CB 50%,
      transparent 51%);
  background-color: #E8EAE6;
  margin-bottom: 200px;
}

.carrot {
  display: inline-block;
  margin: 0 10px;
}

.root {
  position: relative;
  height: 100px;
  width: 40px;
  /* //background: #DB6400; */
  background: radial-gradient(20px 3px at 10px 10px, #DB6400 85%, transparent 86%),
    radial-gradient(15px 2px at 25px 30px, #DB6400 85%, transparent 86%),
    radial-gradient(15px 2px at 0px 55px, #DB6400 85%, transparent 86%),
    radial-gradient(18px 2px at 32px 75px, #DB6400 85%, transparent 86%);
  background-color: #FFA62B;
  z-index: 2;
  border-radius: 30% 30% 70% 70%;
  margin-top: -5px;
}
.leave {
  position: relative;
  width: 10px;
  height: 30px;
  background-color: #A0C334;
  border-radius: 50%;
  margin-left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.leave:before {
  content: '';
  position: absolute;
  width: 10px;
  height: 30px;
  background-color: #A0C334;
  border-radius: 50%;
  top: 0;
  left: -10px;
  z-index: 1;
  transform: rotate(-18deg);
}
.leave:after {
  content: '';
  position: absolute;
  width: 10px;
  height: 30px;
  background-color: #A0C334;
  border-radius: 50%;
  top: 0;
  right: -10px;
  z-index: 1;
  transform: rotate(18deg);
}
              
            
!

JS

              
                
              
            
!
999px

Console