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

              
                <sky>
  <star></star>
  <star></star>
  <star></star>
  <star></star>
  <star></star>
  <star></star>
  <star></star>
  <star></star>
  <star></star>
  <star></star>
  <star></star>
  <star></star>
  <star></star>
  <star></star>
  <star></star>
  <star></star>
  <star></star>
  <star></star>
  <star></star>
  <star></star>
  <star></star>
  <star></star>
  <star></star>
  <star></star>
  <star></star>
  <star></star>
  <star></star>
  <star></star>
  <star></star>
  <star></star>
  <star></star>
  <star></star>
  <star></star>
  <star></star>
  <star></star>
  <star></star>
  <star></star>
  <star></star>
  <star></star>
  <star></star>
  <star></star>
  <star></star>
  <star></star>
  <star></star>
  <star></star>
  <star></star>
  <star></star>
  <star></star>
  <star></star>
  <star></star>
  <star></star>
  <star></star>
  <star></star>
  <star></star>
  <star></star>
  <star></star>
  <star></star>
  <star></star>
  <star></star>
  <star></star>
  <star></star>
  <star></star>
  <star></star>
  <star></star>
  <star></star>
  <star></star>
  <star></star>
  <star></star>
  <star></star>
  <star></star>
</sky>

<h1><span>B</span><span>l</span><span>u</span><span>e</span><span class="w"> </span><span>w</span><span>a</span><span>s</span><span class="w"> </span><span>e</span><span>j</span><span>e</span><span>c</span><span>t</span><span>e</span><span>d</span><span>.</span></h1>

<boi>
  <rightleg></rightleg>
  <leftleg></leftleg>
  <backpack></backpack>
  <belly></belly>
  <eye></eye>
  <leftleg></leftleg>
</boi>

<svg xmlns="http://www.w3.org/2000/svg">
  <filter id="inset" x="-50%" y="-50%" width="200%" height="200%">
    <feFlood flood-color="black" result="outside-color"/>
    <feMorphology in="SourceAlpha" operator="dilate" radius="3.5"/>
    <feComposite in="outside-color" operator="in" result="outside-stroke"/>
    <feFlood flood-color="#0c9fc4" result="inside-color"/>
    <feComposite in2="SourceAlpha" operator="in" result="inside-stroke"/>
    <feMerge>
      <feMergeNode in="outside-stroke"/>
      <feMergeNode in="inside-stroke"/>
    </feMerge>
  </filter>
</svg>
              
            
!

CSS

              
                body {
  margin: 0;
  overflow: hidden;
}

sky {
  display: block;
  background: black;
  width: 100vw;
  height: 100vh;
}
star {
  border-radius: 50%;
  background: white;
  position: absolute;
  animation: star linear infinite; 
  @for $i from 1 through 70 {
    &:nth-child(#{$i}) {
      $size: random(7) + 3px;
      width: $size;
      height: $size;
      animation-duration: random(30) + 15s;
      animation-delay: random(40) - 40s;
      top: random(101) - 1vh;
    }
  }
}
@keyframes star {
  from { transform: translate3d(-100%, 0, 1px); }
  to { transform: translate3d(100vw, 0, 1px); }
}

boi {
  position: absolute;
  left: 0%;
  top: 50%;
  animation: eject 5s infinite linear;
  transform-origin: 13vmin 25vmin;
  transform: translate3d(-50vmin, -20vmin, 0px) rotate(0turn);
}

@keyframes eject {
  0% {
    transform: translate3d(-50vmin, -20vmin, 0px) rotate(0turn);
  }
  50%, 100% {
    transform: translate3d(100vw, -20vmin, 0px) rotate(-2turn);
  }
}

eye {
  position: absolute;
  left: 13vmin;
  top: 9vmin;
  border: 6px solid black;
  width: 10vmin;
  height: 11vmin;
  border-radius: 26vmin;
  transform: rotate(18deg) scale(1, 0.5);
  border-top-width: 12px;
  border-bottom-width: 12px;
  background: radial-gradient(ellipse at 31% 20%, #f9fff7 15%, #fff0 20%), radial-gradient(ellipse at 50% 40%, #82c9e4 65%, #fff0 70%), radial-gradient(ellipse at 60% 30%, #40646f 100%, #fff0 100%);
  background-size: 140% 100%, 96% 80%, 100% 100%;
  background-repeat: no-repeat;
}

belly {
  position: absolute;
  width: 15vmin;
  height: 25vmin;
  background: #0c9fc4 radial-gradient(ellipse at 42% 33%, #14ebe1 50%, #fff0 52%);
  border-radius: 10vmin;
  top: 7vmin;
  left: 6vmin;
  transform: rotate(10deg);
  background-size: 140% 114%;
  border: 7px solid black;
}

backpack {
  position: absolute;
  left: 1.2vmin;
  top: 14vmin;
  background: #14ebe1;
  width: 7vmin;
  height: 11vmin;
  border-radius: 3vmin;
  transform: rotate(7deg);
  border: 7px solid black;
}

leftleg {
  position: absolute;
  left: 1vmin;
  top: 25vmin;
  width: 11vmin;
  height: 11vmin;
  background: radial-gradient(ellipse at 20% 70%, #0c9fc4 15%, #fff0 15%), radial-gradient(ellipse at 0% 29%, #fff0 40%, #0c9fc4 40%);
  background-repeat: no-repeat;
  border-radius: 20vmin;
  background-size: 150% 96%, 100% 100%;
  &:not(:nth-child(2)) {
    clip-path: polygon(-10% 110%, 100% 110%, 110% 60%, 70% 20%, -5% 30%);
  }
  &:nth-child(2) {
    filter: url(#inset);
  }
}

rightleg {
  position: absolute;
  left: 4vmin;
  top: 28vmin;
  width: 11vmin;
  height: 11vmin;
  background: radial-gradient(ellipse at 20% 70%, #0c9fc4 15%, #fff0 15%), radial-gradient(ellipse at 0% 29%, #fff0 40%, #0c9fc4 40%);
  background-repeat: no-repeat;
  border-radius: 20vmin;
  background-size: 150% 96%, 100% 100%;
  filter: url(#inset);
}

h1 {
  position: absolute;
  color: white;
  font-family: arial, sans-serif;
  left: 0;
  top: 50%;
  width: 100%;
  font-weight: 400;
  font-size: 20px;
  text-align: center;
  transform: translateY(-50%);
  @media (min-width: 600px) {
    font-size: 30px;
  }
}
span {
  display: inline-block;
  &.w { display: inline; }
  @for $i from 1 through 17 {
    &:nth-child(#{$i}) {
      animation: type#{$i} 5s infinite linear both;
      @keyframes type#{$i} {
        0%, #{$i * 1.5 + 20}% {
          width: 0px;
          opacity: 0;
        }
        #{$i * 1.5 + 20.5}%, 90% {
          width: auto;
          opacity: 1;
        }
        95%, 100% {
          opacity: 0;
        }
      }
    }
  }
}
              
            
!

JS

              
                /* It's empty as in deep space here */
              
            
!
999px

Console