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></div>
              
            
!

CSS

              
                :root {
  --bg: skyblue;
}

* {
  margin: 0;
  padding: 0;
}

body {
  height: 100vh;
  background-color: skyblue;
  display: grid;
  place-items: center;
  background-size: 
    40vmin 40vmin;
  background-position: 
    -18vmin -12vmin, 
    -10vmin -15vmin,
    -1vmin -10vmin,
    -2vmin -15vmin;
  background-image: 
    radial-gradient(white 15%, transparent 15%),
    radial-gradient(white 25%, transparent 15%), 
    radial-gradient(white 15%, transparent 15%), 
    radial-gradient(white 15%, transparent 15%);
  background-repeat: repeat;
}

div {
  width: 20vmin;
  height: 20vmin;
  background-size: 100% 50%;
  background-position: 100% 100%, 100% 0%;
  background-image: 
    conic-gradient(at 50% 100%, red 12.5%, transparent 12.5% 87.5%, blue 87.5%),
    conic-gradient(from 0.5turn at 50% 0%, gold 12.5%, transparent 12.5% 87.5%, olive 87.5%);
  transform: 
    translate(-10vmin, -5vmin)
    scaleY(1.5)
    rotate3d(1, 1, 1, 280deg);
  animation: kite-animation 5s linear 2s infinite alternate;
  background-repeat: no-repeat; 
}

div:before {
  content: "";
  position: absolute;
  width: 20vmin;
  height: 20vmin;
  top: calc(20vmin - 1px);
  left: calc(10vmin - 1px);
  border: 0;
  border-bottom: 0.5vmin solid black;
  border-left: 0.1vmin solid black;
  border-radius: 0 0 0 100% / 0 0 0 100%;
}

div:after {
  content: "";
  position: absolute;
  width: 2vmin;
  height: 2vmin;
  top: calc(20vmin - 1px);
/*   background: #000; */
  left: calc(10vmin - 1px);
border-radius: 100% 0 80% 0;
     transform: rotateZ(30deg);
box-shadow:
    1.5vmin 1vmin 0vmin 0vmin blue,
    4vmin 4vmin 0vmin 0vmin red,
    8vmin 6.5vmin 0vmin 0vmin green,
    12vmin 8vmin 0vmin 0vmin gold,
    -0.5vmin 3vmin 0vmin 0vmin blue, 
    2vmin 6vmin 0vmin 0vmin red, 
    6vmin 8.5vmin 0vmin 0vmin green,
    10vmin 10.2vmin 0vmin 0vmin gold;
}

@keyframes kite-animation {
  0%   { transform: translate(-10vmin, -5vmin) scaleY(1.5) rotate3d(1, 1, 1, 300deg);}
  25%  { transform: translate(-10vmin, -5vmin) scaleY(1.5) rotate3d(1, 1, 1, 295deg);}
  50%  { transform: translate(-10vmin, -5vmin) scaleY(1.5) rotate3d(1, 1, 1, 300deg);}
  75%  { transform: translate(-10vmin, -5vmin) scaleY(1.5) rotate3d(1, 1, 1, 305deg);}
  100% { transform: translate(-10vmin, -5vmin) scaleY(1.5) rotate3d(1, 1, 1, 300deg);}
} 
              
            
!

JS

              
                
              
            
!
999px

Console