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

              
                
              
            
!

CSS

              
                :root {
  --yellow: #fdd5a2;
  --yellow-1: #ffffc8;
  --blue: skyblue;
  --blue-1: #0066ffd9;
  --blue-2: #000610;
  --pink: #ea818170;
  --pink-1: #e6989863;
}

html {
  background-color: #9d191c;
  mix-blend-mode: hard-light;
}

body {
  height: 100vh;
  margin: 0;
  background-repeat: no-repeat;
  background-image: 
    radial-gradient(var(--blue-2) 50%, transparent 51%),
    radial-gradient(var(--blue-2) 50%, transparent 51%),
    radial-gradient(var(--blue-2) 50%, transparent 51%),
    radial-gradient(var(--blue-2) 50%, transparent 51%),
    radial-gradient(var(--blue-2) 50%, transparent 51%),
    radial-gradient(var(--blue-2) 50%, transparent 51%),
    radial-gradient(var(--blue-2) 50%, transparent 51%),
    /*sky*/
    radial-gradient(circle at bottom, transparent, var(--blue-1) 35%, var(--blue-2) 90%),
    radial-gradient(circle at bottom, transparent, transparent 60%, var(--blue-1) 70%, var(--blue-2)),
    radial-gradient(circle at bottom, var(--yellow-1) 1%, transparent 5%, transparent),
    radial-gradient(circle at bottom, var(--yellow) 5%, transparent 15%, transparent),
    radial-gradient(circle at bottom, var(--pink) 5%, transparent 35%, transparent),
    radial-gradient(var(--pink) 5%, var(--pink-1) 15%, transparent 60%),
    radial-gradient(var(--pink) 55%, var(--pink-1) 55%, transparent 60%),
    conic-gradient(at 50% 100%,
      var(--blue), 
      transparent 3% 3.5%, 
      var(--blue) 4%, 
      transparent 5.5%,
      var(--blue) 6%, 
      transparent 7%, 
      var(--blue) 6%, 
      transparent 9%, 
      var(--blue) 10%, 
      transparent 13% 15%,
      var(--blue) 17%, 
      transparent 20% 22%,
      var(--blue) 23%, 
      transparent 25%,
      var(--blue) 27%, 
      transparent 27.5%,
      var(--blue) 30%, 
      transparent 33%,
      var(--blue) 40%, 
      transparent 43%,
      var(--blue) 65%, 
      transparent 68%,
      var(--blue) 70%, 
      transparent 72%,
      var(--blue) 73%, 
      transparent 74%,
      var(--blue) 75%, 
      transparent 79%,
      var(--blue) 81%, 
      transparent 83%,
      var(--blue) 85%, 
      transparent 87%,
      var(--blue) 90%, 
      transparent 93%,
      var(--blue) 95%, 
      transparent 96%,
      var(--blue) 98%, 
      transparent 99%, 
      var(--blue)
    ),
    radial-gradient(circle at bottom, var(--blue), var(--blue-1));
  
  background-size: 
    50% 50%, 
    60% 50%, 
    120% 50%, 
    50% 50%, 
    60% 50%, 
    80% 50%, 
    120% 50%, 
    /*sky*/
    100% 100%, 
    100% 100%, 
    100% 100%, 
    100% 100%, 
    100% 100%, 
    100% 20%,
    200% 55%,
    100% 100%, 
    0 100%;
  
  background-position: 
    50% 183%, 
    -20% 181%, 
    300% 178%, 
    10% 180%, 
    15% 180%, 
    130% 180%, 
    -150% 178%, 
    /*sky*/
    0 0, 
    0 0, 
    0 0, 
    0 0, 
    0 0,
    0 112%,
    0 200%,
    0 0, 
    0 0;
}
              
            
!

JS

              
                /*
    Hi, I'm Michal, a front-end developer at Outbrain 😎   
    
    to more platforms: 
    twitter: https://twitter.com/MichalPorag
    github: https://github.com/MichalPorag
    linkedin: https://www.linkedin.com/in/michal-porag-9522b5142/
    medium: https://medium.com/@miporagi
    my tech talks: https://www.youtube.com/playlist?list=PLH7Km7lJwMqSviBIID2XUT2BBE_ZTpDWy
    
    Feel free to give a star at github 😘: https://github.com/MichalPorag/Pure-CSS-sport-car
*/


              
            
!
999px

Console