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="fall" role="img" aria-label="cartoon representing fall"></div>
              
            
!

CSS

              
                div {
  width: 90vmin;
  aspect-ratio: 4 / 3;
  position: relative;
  background:
    /* clouds */
    /* cloud 1 */
    radial-gradient(farthest-side at 60% 100%, #fff 60%, #0000 0) 50% 28% / 30% 5%,
    radial-gradient(farthest-side at 50% 70%, #fff 60%, #0000 0) 50% 22% / 13% 12%,
    radial-gradient(farthest-side at 60% 100%, #fff 60%, #0000 0) 53% 25% / 10% 8%,
    /* cloud 2 */
    radial-gradient(farthest-side at 60% 100%, #eed 60%, #0000 0) 58% 28% / 30% 3%,
    radial-gradient(farthest-side at 50% 70%, #eed 30%, #0000 0) 58% 23% / 17% 10%,
    radial-gradient(farthest-side at 60% 100%, #eed 60%, #0000 0) 61% 23% / 10% 8%,
     /* cloud 3*/
     radial-gradient(farthest-side at 60% 100%, #ddc 60%, #0000 0) 12% 18% / 30% 4%,
    radial-gradient(farthest-side at 50% 70%, #ddc 30%, #0000 0) 23% 11% / 13% 13%,
    radial-gradient(farthest-side at 60% 100%, #ddc 60%, #0000 0) 18% 14% / 10% 8%,
    /* sun */
    radial-gradient(circle, #fff 10%, #ffe 15%, #ffec 16%, #ffe5 0, #ffe0 25%),
    /* base */
    linear-gradient(#b8bfa0, #fde5aa 60%)
    ;
  background-repeat: no-repeat;
  
  &::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
     /* mountains */
    /* level 2 */
      radial-gradient(200% 70% at 0 0, #0000 99%, #cdd9c1 0) 0 0 / calc(20% + 0.5px) 100% no-repeat,
    radial-gradient(139% 90% at 100% 0, #0000 98%, #cdd9c1 0) 100% 0 / calc(80% + 0.5px) 100% no-repeat,
    conic-gradient(at 75% 58%, #0000 120deg, #cdd9c1 0 250deg, #0000 0),
     /* trees */
      /* TBD */
    /* level 3 */
      radial-gradient(circle at 35% 30%, #f8f7f3 23%, #0000 0),
      #e7e2cf;
    background-repeat: no-repeat;
    -webkit-mask:
      radial-gradient(200% 70% at 0 0, #0000 99%, #fff 0 99.9%, #e7e2cf 0) 0 0 / calc(30% + 0.5px) 85% no-repeat,
    radial-gradient(157% 80% at 100% 0, #0000 98%, #fff 0 99%, #e7e2cf 0) 100% 0 / calc(70% + 0.5px) 85% no-repeat,
       conic-gradient(at 75% 58%, #0000 120deg, #cdd9c1 0 250deg, #0000 0),
      linear-gradient(#0000 70%, #000 0);
  }
  
  &::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
      /* tree 1 */
      radial-gradient(farthest-side at 140% 100%, #0000 80%, #6d3f08 0 99%, #0000 0) 100% 20% / 5% 20%,
      radial-gradient(farthest-side at 0% 140%, #0000 80%, #6d3f08 0 99%, #0000 0) 76.5% 25% / 11% 6%,
      conic-gradient(at -15% 30%, #0000 128deg, #6d3f08 0 139deg, #0000 0) 97% -10% / 30% 50%,
      conic-gradient(at 50% -300%, #0000 175deg, #6d3f08 0 178deg, #0000 0) 101% 0 / 50% 100%,
      radial-gradient(at 75% 15%, #ec8a06 17%, #0000 0),
      radial-gradient(at 100% 0%, #ec8a06 10%, #0000 0),
      radial-gradient(50% 100% at 90% 25%, #ec8a06 30%, #0000 0),
      radial-gradient(100% 100% at 63% 5%, #ec8a06 10%, #0000 0),
      radial-gradient(100% 100% at 80% 35%, #ec8a06 15%, #0000 0),
      radial-gradient(100% 100% at 61% 5%, #fcaa26 10%, #0000 0),
      radial-gradient(at 71% 15%, #fcaa26 17%, #0000 0),
      radial-gradient(100% 100% at 78% 37%, #fcaa26 15%, #0000 0),
      radial-gradient(50% 100% at 90% 25%, #ec8a06 30%, #fcaa26 0 35%, #0000 0),
      /* tree 2 */
      radial-gradient(50% 200% at -20% 50%, #0000 50%, #b98733 0 58%, #0000 0) 30% 62% / 30% 30%,
      radial-gradient(55% 200% at 100% 50%, #0000 50%, #b98733 0 56%, #0000 0) 3% 58% / 30% 36%,
      radial-gradient(farthest-side at 100% 100%, #0000 90%, #b98733 0 99%, #0000 0) 24% 50% / 5% 10%,
      radial-gradient(30% 200% at 50% 100%, #b98733 50%, #0000 0) 20% 71% / 11% 10%,
      radial-gradient(at 24% 45%, #fad06e 12%, #0000 0),
      radial-gradient(circle at 21% 38%, #fad06e 9%, #0000 0),
       radial-gradient(circle at 30% 35%, #fad06e 7%, #0000 0),
       radial-gradient(50% 80% at 24% 30%, #fad06e 12%, #0000 0),
      radial-gradient(at 22% 46%, #dfc05e 12%, #0000 0),
      radial-gradient(circle at 20% 37%, #dfc05e 9%, #0000 0),
      radial-gradient(50% 80% at 23% 29%, #dfc05e 12%, #0000 0),
      radial-gradient(at 25.5% 45%, #ffe07e 12%, #0000 0),
      radial-gradient(circle at 31.4% 34%, #ffe07e 7%, #0000 0),
      radial-gradient(50% 80% at 25% 30%, #ffe07e 12%, #0000 0),
      /* tree 3 */
      radial-gradient(50% 200% at -20% 50%, #0000 50%, #7d3500 0 58%, #0000 0) 10% 62% / 30% 30%,
      radial-gradient(55% 200% at 100% 50%, #0000 50%, #7d3500 0 56%, #0000 0) -18% 64% / 30% 26%,
      radial-gradient(farthest-side at 0% 100%, #0000 90%, #7d3500 0 99%, #0000 0) 5% 55% / 4% 9%,
      radial-gradient(at 10% 55%, #b24a00 5%, #0000 0),
      radial-gradient(circle at 10% 55%, #b24a00 5%, #0000 0),
      radial-gradient(circle at 10% 37%, #b24a00 7%, #0000 0),
      radial-gradient(50% 100% at 4% 45%, #b24a00 15%, #0000 0),
      /* mountains */
      /* level 3 */
      radial-gradient(70% 50% at -25% 111%, #b65401 80%, #0000 0),
      radial-gradient(127% 80% at 100% 0, #0000 98%, #b65401 0) 100% 100% / 90% 35% no-repeat,
      /* level 2*/
      radial-gradient(120% 50% at 105% 111%, #ef9e21 80%, #0000 0),
      /* level 1 */
      radial-gradient(240% 80% at 30% 0, #0000 99%, #f9c84a 0) 0 0 / calc(35% + 0.5px) 90% no-repeat,
    radial-gradient(205% 80% at 100% 0, #0000 98%, #f9c84a 0) 100% 0 / calc(65% + 0.5px) 100% no-repeat
      ;
    background-repeat: no-repeat;
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console