Pen Settings

HTML

CSS

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

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

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.

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

              
                <!--Yep you see it right. All divs are on leave for today ;) -->
              
            
!

CSS

              
                :root{
  --size: 50;
  --unit: calc((var(--size) / 769) * 1vmin);
}

html {
  height: 100%;
}

body {
  height: 100%;
  margin: 0;
  background-repeat: no-repeat;
  background: linear-gradient(rgb(247, 211, 95) 100%, transparent);
  overflow:hidden;
}

body:before{
  content:"";
  width: calc(742 * var(--unit));
  height: calc(920 * var(--unit));
  border-radius: calc(35 * var(--unit));
  position: absolute;
  top:0;
  left:0;
  right:0;
  bottom:0;
  margin:auto;
  background:
    radial-gradient(circle at 50% 55%, #6b8dbf 0%, #6b8dbf 30%, transparent 30%),
    radial-gradient(circle at 50% 55%, rgb(72, 217, 217) 0%, rgb(72, 217, 217) 35%, transparent 35%),
    linear-gradient(rgb(72, 217, 217), rgb(72, 217, 217)) 83% 57%/ 3.6vmin 6vmin no-repeat,
    radial-gradient(circle at 67% 7%, #fff 0%, #fff 5%, transparent 5%),
    radial-gradient(circle at 68.5% 7.6%, rgb(51, 156, 156) 0%, rgb(51, 156, 156) 5%, transparent 5%),
    radial-gradient(circle at 87% 7%, #fff 0%, #fff 4.6%, transparent 4.6%),
    radial-gradient(circle at 88.5% 7.6%, rgb(51, 156, 156) 0%, rgb(51, 156, 156) 4.6%, transparent 4.6%),
    radial-gradient(circle at 8% 8%, #9658c4 0%, #9658c4 1.8%, transparent 1.8%),
    radial-gradient(circle at 15% 8%, #9658c4 0%, #9658c4 1.8%, transparent 1.8%),
    radial-gradient(circle at 22% 8%, #9658c4 0%, #9658c4 1.8%, transparent 1.8%), 
    radial-gradient(circle at 29% 8%, #9658c4 0%, #9658c4 1.8%, transparent 1.8%),  
    linear-gradient(rgb(72, 217, 217) 15%, transparent 15%),
    #fff linear-gradient(to bottom, #f2f2f2 0%, #f2f2f2 17%, transparent 17%);
  box-shadow:0 4px #d4b550;
  animation: vibrate 0.5s;
  animation-iteration-count: infinite;
}

body:after{
  content:"";
  position: absolute;
  top: 6vmin;
  left: 0;
  right: 0;
  bottom: 0;
  margin:auto;
  width: calc(330 * var(--unit));
  height: calc(330 * var(--unit)); 
  border-radius:50%;
  background: 
    radial-gradient(circle at 26% 42%, #fff 0%, #fff 2%, transparent 2%),
    radial-gradient(circle at 66% 42%, #fff 0%, #fff 2%, transparent 2%),
    radial-gradient(circle at 30% 45%, #232424 0%, #232424 9%, transparent 9%),
    radial-gradient(circle at 70% 45%, #232424 0%, #232424 9%, transparent 9%),
    #6b8dbf radial-gradient(circle at 50% 0%, #692c04 40%, transparent 40%) 50% 85%/ 10vmin 6vmin no-repeat;
  animation: rotate 2s;
  animation-iteration-count: infinite;
}

@keyframes vibrate{
    0% { transform: translate(1px, 1px) rotate(0deg); }
  10% { transform: translate(-1px, -2px) rotate(-1deg); }
  20% { transform: translate(-3px, 0px) rotate(1deg); }
  30% { transform: translate(3px, 2px) rotate(0deg); }
  40% { transform: translate(1px, -1px) rotate(1deg); }
  50% { transform: translate(-1px, 2px) rotate(-1deg); }
  60% { transform: translate(-3px, 1px) rotate(0deg); }
  70% { transform: translate(3px, 1px) rotate(-1deg); }
  80% { transform: translate(-1px, -1px) rotate(1deg); }
  90% { transform: translate(1px, 2px) rotate(0deg); }
  100% { transform: translate(1px, -2px) rotate(-1deg); }
}

@keyframes rotate{
  0%{
    transform:rotate(0deg);
  }
  30%{
    transform:rotate(90deg);
  }
  60%{
    transform:rotate(180deg);
  }
  90%{
    transform:rotate(300deg);
  }
  100%{
    transform:rotate(360deg);
  }
}
              
            
!

JS

              
                //No JS for today but I've got a list of resources that helped me achieve this :
//https://css-tricks.com/advice-for-complex-css-illustrations/
//https://egghead.io/lessons/css-use-multiple-background-images-to-create-single-element-css-art
//https://codepen.io/jh3y/pen/VweqyyW
              
            
!
999px

Console