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 class="container">
  <div class="star-container">
      <div class="deadth-star">
        <div class="row">
          <div class="panel"></div>
        </div>
        <div class="row">
          <div class="panel x2"></div>
          <div class="panel x4"></div>
          <div class="panel x3"></div>
          <div class="panel x3"></div>
          <div class="panel x3"></div>
          <div class="panel x3"></div>
          <div class="panel x2"></div>
          <div class="panel x3"></div>
          <div class="panel x5"></div>
          <div class="panel x3"></div>
          <div class="panel x4"></div>
          <div class="panel x3"></div>
          <div class="panel x2"></div>
          <div class="panel x2"></div>
          <div class="panel x4"></div>
          <div class="panel x3"></div>
          <div class="panel x3"></div>
          <div class="panel x3"></div>
          <div class="panel x3"></div>
          <div class="panel x2"></div>
          <div class="panel x3"></div>
          <div class="panel x5"></div>
          <div class="panel x3"></div>
          <div class="panel x4"></div>
          <div class="panel x3"></div>
          <div class="panel x2"></div>
        </div>
        <div class="row">
          <div class="panel"></div>
          <div class="panel x4"></div>
          <div class="panel x3"></div>
          <div class="panel x3"></div>
          <div class="panel x2"></div>
          <div class="panel x2"></div>
          <div class="panel x5"></div>
          <div class="panel x4"></div>
          <div class="panel"></div>
          <div class="panel x4"></div>
          <div class="panel x3"></div>
          <div class="panel"></div>
          <div class="panel x4"></div>
          <div class="panel x3"></div>
          <div class="panel x3"></div>
          <div class="panel x2"></div>
          <div class="panel x2"></div>
          <div class="panel x5"></div>
          <div class="panel x4"></div>
          <div class="panel"></div>
          <div class="panel x4"></div>
          <div class="panel x3"></div>
        </div>
        <div class="row">
          <div class="panel x4"></div>
          <div class="panel x3"></div>
          <div class="panel x3"></div>
          <div class="panel x5"></div>
          <div class="panel"></div>
          <div class="panel x4"></div>
          <div class="panel x3"></div>
          <div class="panel x3"></div>
          <div class="panel x4"></div>
          <div class="panel x3"></div>
          <div class="panel x3"></div>
          <div class="panel x2"></div>
          <div class="panel x4"></div>
          <div class="panel x2"></div>
          <div class="panel x4"></div>
          <div class="panel x3"></div>
          <div class="panel x3"></div>
          <div class="panel x5"></div>
          <div class="panel"></div>
          <div class="panel x4"></div>
          <div class="panel x3"></div>
          <div class="panel x3"></div>
          <div class="panel x4"></div>
          <div class="panel x3"></div>
          <div class="panel x3"></div>
          <div class="panel x2"></div>
          <div class="panel x4"></div>
          <div class="panel x2"></div>
        </div>
        <div class="row">
          <div class="panel"></div>
        </div>
        <div class="row">
          <div class="panel"></div>
          <div class="panel x2"></div>
          <div class="panel x2"></div>
          <div class="panel"></div>
          <div class="panel x2"></div>
          <div class="panel"></div>
          <div class="panel"></div>
          <div class="panel x2"></div>
          <div class="panel x2"></div>
          <div class="panel"></div>
          <div class="panel"></div>
          <div class="panel x2"></div>
          <div class="panel"></div>
          <div class="panel x2"></div>
          <div class="panel x2"></div>
          <div class="panel"></div>
          <div class="panel x2"></div>
          <div class="panel x2"></div>
          <div class="panel"></div>
          <div class="panel x2"></div>
          <div class="panel"></div>
          <div class="panel"></div>
          <div class="panel x2"></div>
          <div class="panel x2"></div>
          <div class="panel"></div>
          <div class="panel"></div>
          <div class="panel x2"></div>
          <div class="panel"></div>
          <div class="panel x2"></div>
          <div class="panel x2"></div>
        </div>
        <div class="row">
          <div class="panel x2"></div>
          <div class="panel"></div>
          <div class="panel x2"></div>
          <div class="panel x4"></div>
          <div class="panel x2"></div>
          <div class="panel x3"></div>
          <div class="panel x3"></div>
          <div class="panel x3"></div>
          <div class="panel x2"></div>
          <div class="panel x3"></div>
          <div class="panel x3"></div>
          <div class="panel x2"></div>
          <div class="panel x4"></div>
          <div class="panel x2"></div>
          <div class="panel x2"></div>
          <div class="panel"></div>
          <div class="panel x2"></div>
          <div class="panel x4"></div>
          <div class="panel x2"></div>
          <div class="panel x3"></div>
          <div class="panel x3"></div>
          <div class="panel x3"></div>
          <div class="panel x2"></div>
          <div class="panel x3"></div>
          <div class="panel x3"></div>
          <div class="panel x2"></div>
          <div class="panel x4"></div>
          <div class="panel x2"></div>
        </div>
        <div class="row">
          <div class="panel x3"></div>
          <div class="panel x2"></div>
          <div class="panel x3"></div>
          <div class="panel x4"></div>
          <div class="panel"></div>
          <div class="panel x3"></div>
          <div class="panel x4"></div>
          <div class="panel x3"></div>
          <div class="panel x5"></div>
          <div class="panel x3"></div>
          <div class="panel x4"></div>
          <div class="panel x2"></div>
          <div class="panel x2"></div>
          <div class="panel x3"></div>
          <div class="panel"></div>
          <div class="panel x3"></div>
          <div class="panel x2"></div>
          <div class="panel x3"></div>
          <div class="panel x4"></div>
          <div class="panel"></div>
          <div class="panel x3"></div>
          <div class="panel x4"></div>
          <div class="panel x3"></div>
          <div class="panel x5"></div>
          <div class="panel x3"></div>
          <div class="panel x4"></div>
          <div class="panel x2"></div>
          <div class="panel x2"></div>
          <div class="panel x3"></div>
          <div class="panel"></div>
        </div>
        <div class="row">
          <div class="panel"></div>
        </div>
        <div class="laser"></div>
      </div>
  </div>
  <div class="base">
    <div class="top">
      <div class="light"></div>
    </div>
    <div class="bottom"></div>
  </div>
</div>
              
            
!

CSS

              
                :root {
  --height: 300px;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  display: grid;
  place-items: center;
  background-image: radial-gradient(
      circle,
      transparent calc(var(--height) * 1.05),
      #000d 100%
    ),
    linear-gradient(
      #233c4b calc(50vh + var(--height) * 0.7) calc(50vh + var(--height) * 0.7),
      #202729 calc(50vh + var(--height) * 0.7) calc(53vh + var(--height) * 0.7),
      #000a 100vh
    );
}
.star-container {
  height: var(--height);
  width: var(--height);
  position: relative;
  border-radius: 50%;
  background-color: #4ce1ed;
  overflow: hidden;
  box-shadow: 0 0 calc(0.03 * var(--height)) #4ce1ed;
  opacity: 0.5;
  filter: brightness(1.3) saturate(3);
  mask-image: repeating-linear-gradient(90deg, transparent, #000 4px),
    repeating-linear-gradient(90deg, transparent, #0004 2px);
  animation: floating 3s linear infinite alternate;

  &::after {
    content: "";
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 50%;
    background-image: radial-gradient(
      circle at 70% 40%,
      #fff3 30%,
      transparent 50%,
      #0006 70%
    );

    box-shadow: inset calc(-0.03 * var(--height)) calc(-0.02 * var(--height))
        calc(0.06 * var(--height)) #0009,
      inset 0 calc(-0.01 * var(--height)) 1px #fff6;
  }

  &::before {
    content: "";
    height: 10%;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    background: linear-gradient(
      #0000,
      #92f4fb44 30%,
      #8fcdd744 50%,
      #92f4fb44 70%,
      #0000 100%
    );
    box-shadow: 0 0 10px #0000;
    z-index: 3;
    animation: hologram-fail 7s ease-in-out infinite alternate;
  }

  & .deadth-star {
    height: var(--height);
    width: calc(var(--height) * 4);
    position: absolute;
    top: 0;
    left: 0;
    animation: rotate 6s linear infinite;
    & .row {
      display: flex;
      width: 100%;
      margin-top: 0.25%;
      filter: drop-shadow(0 0 calc(var(--height) * 0.007) #000);
      & .panel.x2 {
        flex-grow: 2;
      }
      & .panel.x3 {
        flex-grow: 3;
      }
      & .panel.x4 {
        flex-grow: 4;
      }
      & .panel.x5 {
        flex-grow: 5;
      }

      & .panel {
        height: 100%;
        width: 1%;
        background-color: #4ce1ed;
        margin-left: 0.25%;
        flex-grow: 1;
        background-image: linear-gradient(
            var(--direction, to bottom),
            #0007,
            #0000
          ),
          conic-gradient(#0006 23%, #0000 25% 47%, #0006 50% 73%, #0000 75%);
        background-size: auto, 4px 8px;
      }

      & .panel:nth-child(1) {
        margin-left: 0;
      }
    }
    & .row:nth-child(1) {
      margin-top: 0;
      height: 8%;
    }
    & .row:nth-child(2) {
      height: 12%;
    }
    & .row:nth-child(3) {
      height: 15%;
    }
    & .row:nth-child(4) {
      height: 10%;
    }
    & .row:nth-child(5) {
      height: 2%;
      margin-top: 0.5%;
      & .panel {
        background-image: linear-gradient(transparent, #0009, transparent);
      }
    }
    & .row:nth-child(6) {
      margin-top: 0.5%;
      height: 9%;
      --direction: to top;
    }
    & .row:nth-child(7) {
      height: 6%;
      --direction: to top;
    }
    & .row:nth-child(8) {
      height: 13%;
      margin-right: 0;
      --direction: to top;
    }
    & .row:nth-child(9) {
      height: 16%;
      --direction: to top;
    }

    & .laser {
      height: 30%;
      width: 7%;
      position: absolute;
      top: 14%;
      left: 30%;
      background-color: #4ce1ed;
      border-radius: 50%;
      transform: rotate(15deg);
      background-image: radial-gradient(
          #0009 10%,
          transparent 11% 19%,
          #0009 20%,
          transparent 21% 24%,
          #0009 25%,
          transparent 26% 32%,
          #0009 33%,
          transparent 34% 59%,
          #0009 60%,
          transparent 61% 69%,
          #0009 70%
        ),
        repeating-conic-gradient(#0009 1deg, transparent 4deg 16deg),
        radial-gradient(circle at -50% 50%, #fff3 40%, #0008 70%);
    }

    @keyframes floating {
      from {
        transform: translatey(5%);
      }
      to {
        transform: translatey(10%);
      }
    }

    @keyframes rotate {
      from {
        transform: translatex(0);
      }
      to {
        transform: translatex(-50%);
      }
    }
  }

  @keyframes hologram-fail {
    to {
      transform: translatey(calc(var(--height) * -1));
    }
  }
}

.base {
  whidht: calc(var(--height) * 1.2);
  height: calc(var(--height) * 0.3);
  transform: translatey(65%);
  position: relative;

  & .top {
    width: 100%;
    height: 60%;
    background-color: #38393d;
    background-image: conic-gradient(
      at 50% 10%,
      #0000 70deg,
      #fff4 180deg,
      #0000 290deg
    );
    border-radius: 50%;
    border: calc(var(--height) * 0.01) solid #434449;
    box-sizing: border-box;

    & .light {
      width: calc(var(--height) * 1);
      height: calc(var(--height) * 1);
      position: absolute;
      top: -150%;
      border-radius: 50% 50% 0 0;
      clip-path: polygon(-5% 0, 105% 0, 50% 48%);
      mask-image: radial-gradient(#000, #0000 20%),
        repeating-radial-gradient(#0000 1px, #000 2px);
      &::before {
        content: "";
        width: 200%;
        height: 200%;
        position: absolute;
        top: -50%;
        left: -50%;
        background-image: repeating-conic-gradient(
          #0000 1deg,
          #4ce1ed 3deg,
          #0000 6deg 7deg
        );
        mask-image: radial-gradient(#0009, #0000 40%);
        animation: hologram 10s linear infinite;
      }
    }

    &::before {
      content: "";
      width: 80%;
      height: 60%;
      background: #434449;
      box-shadow: 0 0 5px #4ce1ed, 0 -3px 22px #4ce1ed,
        0 -3px 22px #4ce1ed inset;
      border-radius: 50%;
      display: block;
      margin: 0 auto;
      transform: translatey(-10%);
    }

    &::after {
      content: "";
      width: 50%;
      height: 25%;
      background: radial-gradient(#4ce1ed77, #0000 90%);
      box-shadow: 0 0 5px #4ce1ed99, 0 -3px 15px #4ce1ed99,
        0 -3px 15px #4ce1ed99 inset;
      border-radius: 50%;
      display: block;
      margin: 0 auto;
      animation: shadow 3s linear infinite alternate;
    }

    @keyframes shadow {
      from {
        transform: scale(0.9) translatey(-250%);
        opacity: 0.5;
      }
      to {
        transform: scale(1) translatey(-250%);
        opacity: 1;
      }
    }

    @keyframes hologram {
      to {
        transform: rotate(-0.5turn);
      }
    }
  }

  & .bottom {
    whidht: 100%;
    height: 60%;
    background-image: linear-gradient(
      90deg,
      #38393d 10%,
      #707072 20% 25%,
      #171719 40% 70%,
      #a3abb8 85% 89%,
      #161419 100%
    );
    box-shadow: 0 4px #222, 0 12px 0 -6px #333;
    border-radius: 0% 0% 50% 50% / 0% 0% 50% 50%;
    position: relative;
    z-index: -1;
    transform: translatey(-45%);
  }
}

              
            
!

JS

              
                
              
            
!
999px

Console