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

              
                <div class="divtober-small" role="img" aria-label="cartoon of a cracked egg showing a small chick inside"></div>
              
            
!

CSS

              
                body {
  background: #4cf6;  
}

.divtober-small {
  transform-origin: 50% 100%;
  font-size: 1vmin;
  width: 50em;
  height: 80em;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 0) scale(0.5);
  background: 
    /* beak */
     radial-gradient(circle at 48% 40.5%, #0001 0.5%, #0000 0),
    radial-gradient(circle at 52% 40.5%, #0001 0.5%, #0000 0),
    radial-gradient(farthest-side at 50% 100%, darkorange 99%, #0000) 50% 40% / 11% 3%,
    radial-gradient(farthest-side at 50% 0, orange 99%, #0000) 50% 42% / 10% 3%,
    /* eyes */
    radial-gradient(circle at 35% 36%, #fff 1.25%, #0000 0),
    radial-gradient(circle at 61% 36%, #fff 1.25%, #0000 0),
    radial-gradient(circle at 37% 37%, #000 3.5%, #0000 0),
    radial-gradient(circle at 63% 37%, #000 3.5%, #0000 0),
    /* cheeks */
    radial-gradient(120% 50% at 34% 40%, #fcc 4%, #0000 0),
    radial-gradient(120% 50% at 66% 40%, #fcc 4%, #0000 0),
    /* body */
    radial-gradient(circle at 50% 30%, #fe5 27%, #0000 0),
    radial-gradient(farthest-side at 50% 100%, #fe5 80%, #0000 0) 50% 60%/ 90% 50%,
    /* egg shell back */
    conic-gradient(#0000 160deg, #ccc 0 200deg, #0000 0) 7% 52% / 20% 20%,
    conic-gradient(#0000 140deg, #ccc 0 210deg, #0000 0) 93% 52% / 20% 20%,
    #f000;
  background-repeat: no-repeat;
}

.divtober-small::before {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(#fff 40%, #fff);
  border-radius: 100% / 125% 125% 80% 80%;
  clip-path: polygon(0 0, 100% 0, 100% 30%, 85% 23%, 80% 30%, 70% 24%, 63% 33%, 53% 23%, 44% 34%, 35% 26%, 27% 34%, 24% 30%, 20% 34%, 18% 24%, 10% 30%, 12% 24%, 0% 30%, 0% 55%, 3% 60%, 10% 53%, 15% 60%, 20% 55%, 25% 64%, 28% 60%, 32% 65%, 40% 56%, 50% 65%, 60% 54%, 70% 65%, 80% 53%, 90% 60%, 97% 50%, 100% 55%, 100% 100%, 0 100%);
}
              
            
!

JS

              
                
              
            
!
999px

Console