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

              
                <div class="wrapper">

  <div class="icons">
    <svg class="connect" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 120 120">

      <title>connect</title>
      <g class="connect-mug" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="5">
        <path d="M33,64.5c-18,0-18,27,0,27" />
        <path d="M60,55.5c-14.912,0-27-2.015-27-4.5v54c0,2.485,12.088,4.5,27,4.5s27-2.015,27-4.5V51C87,53.485,74.912,55.5,60,55.5Z" />
        <ellipse cx="60" cy="51" rx="27" ry="4.5" />
      </g>
      <g class="wobblyBits" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="5">
        <path class="wobblyBit" d="M56.4,37.5c0-6.75,7.199-6.75,7.199-13.5S56.4,17.25,56.4,10.5" />
        <path class="wobblyBit" d="M42,37.5c0-6.75,7.2-6.75,7.2-13.5S42,17.25,42,10.5" />
        <path class="wobblyBit" d="M70.8,37.5c0-6.75,7.2-6.75,7.2-13.5s-7.2-6.75-7.2-13.5" />
      </g>
    </svg>

    <svg class="campaign" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 120 120">

      <title>Campaign</title>
      <g class="campaign-megaphone" fill="none" stroke="#fff" stroke-miterlimit="10" stroke-width="5">
        <path d="M69,31.5219a3.4539,3.4539,0,0,0-1.839.566L10.5,49.5219c-2.485,0-4.5,4.029-4.5,9s2.015,9,4.5,9l56.661,17.434a3.4539,3.4539,0,0,0,1.839.566c4.971,0,9-12.088,9-27S73.9712,31.5219,69,31.5219Z" />
        <path d="M42,76.5219l-1.868,6.538c-1.031,3.61-3.805,5.984-6.195,5.301l-8.654-2.472c-2.389-.683-3.49-4.164-2.459-7.774l1.868-6.538" />
        <ellipse cx="69.0002" cy="58.5219" rx="9" ry="27" />
      </g>
      <g class="wobblyBits" fill="none" stroke="#fff" stroke-linecap="round" stroke-miterlimit="10" stroke-width="5">
        <line class="wobblyBit" x1="96.0002" y1="58.5219" x2="114.0002" y2="58.5219" />
        <line class="wobblyBit" x1="96.0002" y1="40.5219" x2="114.0002" y2="31.5219" />
        <line class="wobblyBit" x1="96.0002" y1="76.5219" x2="114.0002" y2="85.5219" />
      </g>
    </svg>

    <svg class="champion" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 120">

      <title>champion</title>
      <g class="champion-star">
        <polygon points="60 17.376 69.036 45.188 98.279 45.188 74.621 62.376 83.657 90.188 60 72.999 36.342 90.188 45.378 62.376 21.721 45.188 50.963 45.188 60 17.376" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="5" />
      </g>

      <g class="wobblyBits" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="5">
        <line class="wobblyBit nw" x1="38.84" y1="28.4994" x2="33.55" y2="21.2184" />
        <line class="wobblyBit ne" x1="81.1604" y1="28.4994" x2="86.4504" y2="21.2184" />
        <line class="wobblyBit se" x1="94.2375" y1="68.7496" x2="102.7975" y2="71.5306" />
        <line class="wobblyBit s" x1="60.0002" y1="93.6246" x2="60.0002" y2="102.6246" />

        <line class="wobblyBit sw" x1="25.762" y1="68.7496" x2="17.202" y2="71.5306" />
      </g>
    </svg>
    <svg class="blog" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 120 120">
      <title>blog</title>

      <defs>
        <mask id="lines">
          <rect fill="black" width="120" height="120" />
          <path fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="5" d="M42 45, 78 45, M 42 57 , 69 57, M 42 69, 78 69" />
        </mask>
      </defs>
      <path d="M105,55.5c0-27-22.5-36-45-36s-45,9-45,36,22.5,36,45,36a73.8322,73.8322,0,0,0,13.19-1.14C81.89,100.5,97.5,100.5,97.5,100.5A34.7993,34.7993,0,0,1,85.44,86.65C96.84,81.5,105,71.75,105,55.5Z" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="5" />
      <path class="wobblyBit" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="5" d="M42 45, 78 45, 78 51, 42 51, 42 57 , 69 57, 69 63 42 63, 42 69, 78 69" mask="url(#lines)" />
    </svg>

  </div>
</div>
              
            
!

CSS

              
                body {
  color: white;
  text-align: center;
  padding: 1em;
  box-sizing: border-box;
}
*,
*:before,
*:after {
  box-sizing: inherit;
}

.wrapper {
  position: absolute;
  inset: 1em;
  display: flex;
  align-items: center;
}

.icons {
  width: 100%;
  height: 100%;

  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 1em;
  align-items: center;

  box-sizing: border-box;
  svg {
    padding: 1em;
    background: #64646e;

    height: 100%;
    width: 100%;
  }
}
.wobblyBit {
  stroke-dasharray: 200%;
  transition: 1s;
}

.connect:hover {
  background-color: #5db67c;
}
.campaign:hover {
  background-color: #694896;
}
.champion:hover {
  background-color: #ef7c4f;
}
.blog:hover {
  background-color: #db345e;
}

svg:hover .wobblyBit {
  stroke-dasharray: 40;
  animation: dash 1s linear infinite;
}

@keyframes dash {
  to {
    stroke-dashoffset: -80;
  }
}

              
            
!

JS

              
                
              
            
!
999px

Console