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 id="mythical"></div>
              
            
!

CSS

              
                // #divtober 19: Mythical
// a.singlediv.com/divtober2022

white(alpha)
  rgba(255,255,255,alpha)

body
  min-height: 400px
  height: 100vh
  position: relative
  background-color: darkslategray

div
  position: absolute
  left: 50%
  top: 50%

  &::before
    display: block
    content: ''
    position: absolute

#mythical
  width: 250px
  height: calc(100% - 50px)
  margin-left: -(@width/2)
  top: 0
  background: linear-gradient(to bottom, white(.3), white(.05) 70%) 79% 0 / .5em 100%,
              linear-gradient(to bottom, white(.2), white(.05) 80%) 80% 0 / 2em 100%,
              linear-gradient(to bottom, white(.3), white(.05) 70%) 60% 0 / 1em 100%,
              linear-gradient(to bottom, white(.3), white(.05) 70%) 26% 0 / .5em 100%,
              linear-gradient(to bottom, white(.3), white(.05) 70%) 25% 0 / 3em 100%,
              linear-gradient(to bottom, white(.4), white(.05) 80%) 12% 0 / .5em 100%,
              linear-gradient(to bottom, white(.4), white(.05) 80%) 90% 0 / .5em 100%,
              linear-gradient(to bottom, white(.1), white(.05) 20%) 47% 0 / 1.8em 100%
  background-repeat: no-repeat

  &::before
    width: 100%
    height: 300px
    bottom: 0
    background: radial-gradient(circle, magenta 25%, alpha(magenta,0) 25.5%) 50% 34.5% / 1em 1em,
                linear-gradient( 135deg, white(0) 70%, white 70.2%) 46.8% 31.5% / 1em 1em,
                linear-gradient(-135deg, white(0) 70%, white 70.2%) 53.3% 31.5% / 1em 1em,
                linear-gradient(  45deg, white(0) 70%, white 70.2%) 46.8% 37% / 1em 1em,
                linear-gradient( -45deg, white(0) 70%, white 70.2%) 53.3% 37% / 1em 1em,
                radial-gradient(circle, goldenrod 43%, alpha(goldenrod,0) 43.5%) 32% 33.3% / 1em 1em,
                radial-gradient(circle, goldenrod 43%, alpha(goldenrod,0) 43.5%) 68% 33.3% / 1em 1em,
                linear-gradient(goldenrod, goldenrod) 50% 34% / 5em .3em,
                radial-gradient(circle, goldenrod 50%, alpha(goldenrod,0) 50.5%) 50% 4% / 1em 1em,
                linear-gradient( 95deg, alpha(goldenrod,0) 56%, gold 58%) 46.6% 10% / 1em 5em,
                linear-gradient(-95deg, alpha(goldenrod,0) 56%, goldenrod 58%) 53.4% 10% / 1em 5em,
                linear-gradient(150deg, white(0) 30%, white(.5) 30.5%,
                                        white(.5) 38%, white(0) 38.5%,
                                        white(0) 42%, white(.5) 42.5%,
                                        white(.5) 45%, white(0) 45.5%,
                                        white(0) 65%, white(.5) 65.5%,
                                        white(.5) 70%, white(0) 70.5%) 50% 60% / 1.8em 8em,
                linear-gradient(midnightblue, midnightblue) 50% 60% / .1em 8em,
                linear-gradient(dodgerblue, dodgerblue) 50% 60% / 1.8em 8em,
                linear-gradient(alpha(lightslategrey,.5), alpha(lightslategrey,.5)) 50% 77% / 3em .2em,
                linear-gradient(115deg, alpha(lightslategrey,0) 50%, alpha(lightslategrey,.5) 50.5%) 50% 100% / 1em 1.6em,
                linear-gradient(160deg, alpha(lightslategrey,.5) 45%, alpha(lightslategrey,0) 45.5%) 70% 94% / 1.5em 1em,
                linear-gradient(160deg, alpha(lightslategrey,0) 65%, alpha(lightslategrey,.5) 65.5%) 20% 86% / 3em 1em,
                linear-gradient( 30deg, alpha(lightslategrey,.5) 35%,  alpha(lightslategrey,0) 35.5%) 90% 100% / 1.5em 1em,
                linear-gradient(-30deg, alpha(lightslategrey,.5) 35%,  alpha(lightslategrey,0) 35.5%) 20% 100% / 1.5em 1em,
                linear-gradient( 125deg, alpha(lightsteelblue,0) 14%, lightsteelblue 14.5%) -10% 100% / 13em 2.5em,
                linear-gradient( 120deg, alpha(lightsteelblue,0) 39%, lightsteelblue 39.5%) -10% 100% / 8em 4em,
                linear-gradient( 130deg, alpha(lightsteelblue,0) 30%, lightsteelblue 30.5%)  35% 90% / 4em 4em,
                linear-gradient(-150deg, alpha(lightsteelblue,0) 20%, lightsteelblue 20.5%)  65% 90% / 4em 4em,
                linear-gradient(-120deg, alpha(lightsteelblue,0) 22%, lightsteelblue 22.5%) 100% 100% / 6em 3em,
                linear-gradient(pink, pink) 10% 10% / .2em .8em,
                linear-gradient(pink, pink) 8.5% 11.5% / .8em .2em,
                linear-gradient(turquoise, turquoise) 90% 20% / .2em .8em,
                linear-gradient(turquoise, turquoise) 91.5% 21% / .8em .2em,
                linear-gradient(turquoise, turquoise) 30% 50% / .2em .8em,
                linear-gradient(turquoise, turquoise) 29% 50% / .8em .2em,
                radial-gradient(circle, white 30%, white(0) 31%) 63% 23% / .5em .5em,
                radial-gradient(circle, white 30%, white(0) 31%) 6% 70% / .5em .5em,
                radial-gradient(circle, white 30%, white(0) 31%) 90% 60% / .5em .5em
    background-repeat: no-repeat
              
            
!

JS

              
                // @lynnandtonic
// a.singlediv.com

              
            
!
999px

Console