css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

Pen Settings

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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation


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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

              <div class="canvas">
  <div class="color-bar"></div>
  <div class="color-bar"></div>
  <div class="color-bar"></div>
  <div class="color-bar"></div>
  <div class="color-bar"></div>
  <div class="color-bar"></div>
              // Color Pallete
$black:      #000;
$gray:       #333;
$beige:      #cecbbd;
$blue-dark:  #11274f;
$blue-med:   #78aebb;
$blue-light: #bfcdd0;
$red:        #ee5454;
$coral:      #c2b2ae;
$orange:     #efb878;
$yellow:     #ffff00;
$green-dark: #182720;
$green:      #008000;

body {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 100px 0;
  background-color: $beige;

.canvas {
  display: flex;
  flex-flow: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  padding: 50px;
  width: 400px;
  height: 400px;
  background: $blue-dark;
  &::after {
    content: "";
    height: 100%;
  &::before {
    min-width: 100%;
    // Top left
      circle at -30% 10%,
      $coral 15%,
      $blue-light 55%,
    // Organge splotch
      circle at 110% 20%,
      $red 20%,
      $blue-med 25%,
      $orange 40%
    // Wayyyy at the bottom for blending
      circle at center 200%,
      $green 25%,
      $yellow 40%,
    // Bottpm left
      circle at bottom left,
      $green-dark 25%,
    // Bottom right, linear gradient for blending
    background-blend-mode: difference;
  &::after {
    position: relative;
    min-width: 100%;
    left: -100%;
    right: 100%;
    background: linear-gradient(
      transparent 9%, 
      $blue-dark 9%, 
      $blue-dark 18%, 
      $blue-dark 18%, 
      transparent 18%, 
      transparent 27%, 
      $blue-dark 27%, 
      $blue-dark 36%, 
      $blue-dark 36%, 
      transparent 36%, 
      transparent 45%, 
      $blue-dark 45%, 
      $blue-dark 54%, 
      $blue-dark 54%,
      transparent 54%,
      transparent 63%,
      $blue-dark 63%,
      $blue-dark 62%,
      $blue-dark 72%,
      transparent 72%,
      transparent 81%,
      $blue-dark 81%,
      $blue-dark 81%,
      $blue-dark 90%,
      transparent 90%,
      transparent 98%,
      $blue-dark 98%

.color-bar {
  flex-basis: auto;
  flex-shrink: 1;
  justify-content: flex-start;
  align-content: stretch;
  align-items: stretch;
  width: 10%;
  background-color: transparent;
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................