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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

              
                <div class="body">
  <div class="loadingWrap">
    <svg class="loading" viewBox="0 0 84.6 84.6">
      <defs>
        <filter id="stickyFilter">
          <feGaussianBlur in="SourceGraphic" stdDeviation="2" result="blur" />
          <feColorMatrix in="blur" mode="matrix" values="1 0 0 0 0  0 1 0 0 0  0 0 1 0 0  0 0 0 19 -9" result="filter" />
          <feComposite in="SourceGraphic" in2="filter" operator="atop"/>
        </filter>
        <linearGradient id="gradient" class="gradient" x1="0%" y1="0%" x2="0%" y2="40%" gradientTransform="rotate(45)">
          <stop offset="0%"/>
          <stop offset="100%"/>
        </linearGradient>
      </defs>
      <clipPath id="clip">
        <circle cx="42.3" cy="42.3" r="41.6"/>
      </clipPath>
      <g clip-path="url(#clip)">
        <path class="background" d="M0 0h84.6v84.6H0z"/>
        <g class="exhaust">
          <path class="gradientBox" d="M2.37244 65.5981l28.84968-28.84968 16.54614 16.54614-28.84968 28.84968z"/>
          <path class="gradientBox" d="M6.35189 69.55189l28.84968-28.84968 8.34378 8.34378-28.84968 28.84968z"/>
          <g class="filteredGroup">
            <path class="line1 line lineThick" d="M47.7 49.6L13.4 83.9"/>
            <path class="line2 line lineThick" d="M42.3 42.3L8 76.6"/>
            <path class="line3 line lineThick" d="M33.5 38.5L-.8 72.8"/>

            <path class="line4 line lineDots"  d="M45 45.82L10.7 80.12"/>
            <path class="line5 line lineDots" d="M38.16 40.06L3.86 74.36"/>

            <path class="line6 line lineStatic" d="M39.46 41.15L18.91 61.7"/>
            <path class="line7 line lineStatic" d="M43.57 43.77L23.02 64.32"/>
          </g>
        </g>
        <g class="rotate">
          <g class="rumble">
            <path class="arrow" d="M60.8 27.2c.6-2.1-1.3-4-3.4-3.4L19.5 35.3c-2.2.7-2.6 3.6-.8 4.9l15.8 7.6c1.1.5 2 1.4 2.5 2.6L44.4 66c1.3 1.9 4.2 1.4 4.9-.8l11.5-38z"/>
          </g>
        </g>
      </g>
    </svg>
    <div class="label">Sending your request...</div>
  </div>
 </div>

<!-- Website Corner Link -->
<a class="website-link" href="https://codepen.io/coopergoeke" target="_blank" rel="noopener noreferrer">
  <svg class="website-link__icon" viewBox="0 0 936.86 1054.94">
    <circle cx="468.43" cy="607.07" r="395.02" fill="#fff" stroke="#8aa8c5" stroke-width="55" stroke-miterlimit="10"/>
    <path d="M235.76 936.24l9.7-135.08c3.7-53.1 43.2-96.01 96.01-93.96h250.85c52.81-2.05 92.33 41.65 96.01 93.96l10.73 135.81s-98.94 65.12-231.06 65.12-232.24-65.85-232.24-65.85z" fill="#293b67"/>
    <circle cx="468.43" cy="607.07" r="395.02" fill="none" stroke="#8aa8c5" stroke-width="55" stroke-miterlimit="10"/>
    <path d="M532.23 716.09c0 23.61-35.44 30-64.23 30s-64.23-8.39-64.23-30V607.76h128.46v108.33z" fill="#e2cfbb"/>
    <path d="M532.23 678.63s-35.44 8.46-64.23 8.46-64.23-7.83-64.23-7.83v-130.5h128.46v129.87z" fill="#d3c2b2"/>
    <path d="M722.57 326.26c0 193.67-79.11 350.67-255.53 350.67s-253.25-157-253.25-350.67 156.76-210.31 253.25-210.31c126.23 0 255.53 16.64 255.53 210.31z" fill="#ffe8cc"/>
    <path d="M604.47 634.6c-11.18 8.23-23.2 15.37-36.06 21.33-29.33 13.58-63.06 20.99-101.38 20.99-31.91 0-60.57-5.14-86.1-14.7-50.16-18.78-88.26-54.66-115.33-102.22-35.3-62.04-51.82-143.95-51.82-233.74 0-83.76 29.32-134.41 70.41-164.91-90.46 362.86 101.1 570.06 320.28 473.25z" fill="#f3ddc3"/>
    <path d="M701.59 182.44c-6.72-15.99-8.89-39.53-18.6-51.9-1.69-2.16-6.62-3.91-12.43-5.52-15.99-16.61-43.59-39.48-65.94-49.1-7.45-3.21-49.94-38.95-58.11-41.45-6.06-1.85-3.35 25.38-19.3 18.59-31.38-13.36-71.2-32.91-85.46-34.43-17.17-1.84 6.77 41.39-12.69 41.39-36.11 0-65.27-23.14-82.97-25.55-1.48 22.91-9.35 37.78-24.01 44.8-12.97 6.21-42.51.74-53.19 9.43 8.93 20.86-.31 22.93-1.87 37.18-7.32 3.08-17.47 5.36-17.47 5.36-11.17 13.67-10.86 35.77-18.24 54.03-7.44 18.42-12.96 39.27-16.63 62.75-3.65 23.39-3.52 72.17-3.52 101 0 96.83 56.25-132.84 91.88-160.87 35.63-28.02 164-32.7 164-32.7S620 163.71 648.95 193.9c28.95 30.18 75.9 249.36 75.9 160.96 0-59.25-7.63-135.22-23.26-172.42z" fill="#f2cf6f"/>
    <path d="M441.75 18.63c-15.02-1.61 1.38 31.23-7.26 39.53 15.28-3.58 10.26-39.58 7.26-39.53z" fill="#d8b45c"/>
    <path d="M346.09 34.47c-1.48 22.91-12.06 43.85-33.99 47.54 12.81-1.1 21.29 3.03 34.75-2.18 17.45-6.76 16.94-42.95-.76-45.36z" fill="#d8b45c"/>
    <path d="M268.89 88.7c8.93 20.86-.31 22.93-1.87 37.18-7.32 3.08-17.47 5.36-17.47 5.36-11.17 13.67-10.86 35.77-18.24 54.03-7.44 18.42-12.96 39.27-16.63 62.75-3.65 23.39 15.73-33.35 48.77-64.39 32.36-30.39 16.12-103.62 5.44-94.93z" fill="#d8b45c"/>
    <path d="M505.31 460.4c0-10.8-16.63-19.55-37.14-19.55s-37.14 8.75-37.14 19.55 74.28 10.79 74.28 0z" fill="#d3bfae"/>
    <path d="M330.65 366.32c28.67-30.62 53.86-31.06 82.1 0" fill="none" stroke="#000" stroke-width="14" stroke-linecap="round" stroke-miterlimit="10"/>
    <path d="M521.65 366.32c28.67-30.62 53.86-31.06 82.1 0" fill="none" stroke="#000" stroke-width="14" stroke-linecap="round" stroke-miterlimit="10"/>
    <path d="M468.01 617.93c-35.42 0-71.93-28.05-71.93-55.82 0-12.56 10.52-18.84 23.38-18.84h97.43c12.86 0 23.38 6.31 23.38 18.84 0 30.2-36.84 55.82-72.26 55.82z" fill="#824446"/>
    <defs>
      <path id="a" d="M468.01 617.93c-35.42 0-71.93-28.05-71.93-55.82 0-12.56 10.52-18.84 23.38-18.84h97.43c12.86 0 23.38 6.31 23.38 18.84 0 30.2-36.84 55.82-72.26 55.82z"/>
    </defs>
    <clipPath id="b">
      <use xlink:href="#a" overflow="visible"/>
    </clipPath>
    <circle cx="468.17" cy="614.05" r="30" clip-path="url(#b)" fill="#f37879"/>
  </svg>
  <span class="website-link__name">Cooper <span class="website-link__last-name">Goeke</span></span>
  <span class="website-link__message">Check out more of my work</span>
</a>
              
            
!

CSS

              
                .body {
  // For codepen purposes
  -webkit-font-smoothing: antialiased;
  align-items: center;
  background-color: #f4f7ff;
  display: flex;
  height: 100vh;
  justify-content: center;
}

$launchLength: 4s;

@keyframes drawThick {
  0% { stroke-dashoffset: 180; }
  100% { stroke-dashoffset: 0; }
}
@keyframes drawDots {
  0% { stroke-dashoffset: 60; }
  100% { stroke-dashoffset: 0; }
}
@keyframes drawStatic {
  0% { stroke-dashoffset: 8; }
  30% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 8; }
}
@keyframes rumble {
  0% { transform: translate(-1px, -1px); }
  10% { transform: translate(0, 0); }
  15% { transform: translate(-1px, -1px); }
  35% { transform: translate(1px, 1px); }
  45% { transform: translate(-1px, -1px); }
  55% { transform: translate(1px, 1px); }
  65% { transform: translate(0, 0); }
  80% { transform: translate(1px, 1px); }
  100% { transform: translate(-1px, -1px); }
}
@keyframes rotate3d {
  0% { transform: rotate3d(1, -1, 0, 0); }
  30% { transform: rotate3d(1, -1, 0, 0deg); }
  50% { transform: rotate3d(1, -1, 0, 60deg); }
  100% { transform: rotate3d(1, -1, 0, 0); }
}
@keyframes launch {
  5% { transform: translate(0, 0); }
  8% { transform: translate(2px, -2px); }
  30% { transform: translate(-60px, 60px); }
  100% { transform: translate(0, 0); }
}
@keyframes slideIn {
  0% { transform: translate(-60px, 60px); }
  35% { transform: translate(-60px, 60px); }
  100% { transform: translate(0, 0); }
}

.loadingWrap {
  text-align: center;
}

.loading {
  max-width: 70px;
  width: 100%;

  .background {
    fill: #102555;
  }

  .rotate {
    animation: rotate3d $launchLength 1;
    transform-origin: center;
  }

  .rumble {
    animation: rumble 1s infinite ($launchLength / 3);
  }

  .arrow {
    animation: launch $launchLength 1;
    fill: #fff;
  }

  .exhaust {
    animation: slideIn $launchLength 1;
  }

  .gradient {
    stop {
      stop-color: #fff;
      stop-opacity: 0.2;
    }

    stop:last-child {
      stop-opacity: 0;
    }
  }

  .gradientBox {
    fill: url('#gradient');
  }

  .filteredGroup {
    filter: url('#stickyFilter');
  }

  .line {
    animation-iteration-count: infinite;
    stroke: #dde1ee;
    stroke-linecap: round;
  }

  .lineThick {
    animation-name: drawThick;
    animation-timing-function: linear;
  }

  .lineDots {
    animation-name: drawDots;
    animation-timing-function: linear;
    stroke-dasharray: 0, 30;
    stroke-width: 5.5;
  }

  .lineStatic {
    animation-name: drawStatic;
    animation-timing-function: ease;
    stroke-dasharray: 22;
    stroke-width: 8;
  }

  .line1 {
    animation-duration: 1.6s;
    stroke-dasharray: 8, 22, 3, 27, 16, 14;
    stroke-width: 4;
  }

  .line2 {
    animation-duration: 1.3s;
    stroke-dasharray: 18, 12, 10, 20, 3, 27;
    stroke-width: 6;
  }

  .line3 {
    animation-duration: 1.4s;
    stroke-dasharray: 3, 27, 10, 20, 20, 10;
    stroke-width: 4;
  }

  .line4 {
    animation-duration: 0.4s;
  }

  .line5 {
    animation-duration: 0.7s;
  }

  .line6 {
    animation-duration: 0.8s;
  }

  .line7 {
    animation-duration: 0.6s;
  }
}

.label {
  color: #555;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .8rem;
  font-weight: 700;
  margin-top: 1rem;
}

/* Website Link */
.website-link {
  background: #f8faff;
  border-radius: 50px 0 0 50px;
  bottom: 30px;
  color: #324b77;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  height: 34px;
  filter: drop-shadow(2px 3px 4px rgba(#000, .1));
  padding: 0 20px 0 40px;
  position: fixed;
  right: 0;
  text-align: left;
  text-decoration: none;

  &__icon {
    left: -10px;
    position: absolute;
    top: -12px;
    width: 44px;
  }

  &__name {
    display: block;
    font-size: 14px;
    line-height: 14px;
    margin: 5px 0 3px;
  }

  &__last-name {
    color: #55bada;
  }

  &__message {
    color: #8aa8c5;
    display: block;
    font-size: 7px;
    line-height: 7px;
  }
}
              
            
!

JS

              
                /* Nope */
              
            
!
999px

Console