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="sns-group">
  <ul>
    <li>
      <a class="c-link c-link--facebook" href="#0" aria-label="Facebook">
        <svg viewBox="0 0 24 24">
          <path id="path4" d="m17 2v4h-2c-0.69 0-1 0.81-1 1.5v2.5h3v4h-3v8h-4v-8h-3v-4h3v-4a4 4 0 0 1 4 -4h3z"/>
        </svg>
      </a>
    </li>
    <li>
      <a class="c-link c-link--twitter" href="#0" aria-label="Twitter">
        <svg>
          <path id="path4" d="m22.46 6c-0.77 0.35-1.6 0.58-2.46 0.69 0.88-0.53 1.56-1.37 1.88-2.38-0.83 0.5-1.75 0.85-2.72 1.05-0.79-0.86-1.9-1.36-3.16-1.36-2.35 0-4.27 1.92-4.27 4.29 0 0.34 0.04 0.67 0.11 0.98-3.56-0.18-6.73-1.89-8.84-4.48-0.37 0.63-0.58 1.37-0.58 2.15 0 1.49 0.75 2.81 1.91 3.56-0.71 0-1.37-0.2-1.95-0.5v0.03c0 2.08 1.48 3.82 3.44 4.21-0.36 0.1-0.74 0.15-1.13 0.15-0.27 0-0.54-0.03-0.8-0.08 0.54 1.69 2.11 2.95 4 2.98-1.46 1.16-3.31 1.84-5.33 1.84-0.34 0-0.68-0.02-1.02-0.06 1.9 1.22 4.16 1.93 6.58 1.93 7.88 0 12.21-6.54 12.21-12.21 0-0.19 0-0.37-0.01-0.56 0.84-0.6 1.56-1.36 2.14-2.23z"/>
        </svg>
      </a>
    </li>
    <li>
      <a class="c-link c-link--linkedin" href="#0"  aria-label="Linkedin">
        <svg>
          <path id="path4" d="m21 21h-4v-6.75c0-1.06-1.19-1.94-2.25-1.94s-1.75 0.88-1.75 1.94v6.75h-4v-12h4v2c0.66-1.07 2.36-1.76 3.5-1.76 2.5 0 4.5 2.04 4.5 4.51v7.25m-14 0h-4v-12h4v12m-2-18a2 2 0 0 1 2 2 2 2 0 0 1 -2 2 2 2 0 0 1 -2 -2 2 2 0 0 1 2 -2z"/>
        </svg>
      </a>
    </li>
    <li>
      <a class="c-link c-link--instagram" href="#0" aria-label="Instagram">
        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
          <path d="M256,49.471c67.266,0,75.233.257,101.8,1.469,24.562,1.121,37.9,5.224,46.778,8.674a78.052,78.052,0,0,1,28.966,18.845,78.052,78.052,0,0,1,18.845,28.966c3.45,8.877,7.554,22.216,8.674,46.778,1.212,26.565,1.469,34.532,1.469,101.8s-0.257,75.233-1.469,101.8c-1.121,24.562-5.225,37.9-8.674,46.778a83.427,83.427,0,0,1-47.811,47.811c-8.877,3.45-22.216,7.554-46.778,8.674-26.56,1.212-34.527,1.469-101.8,1.469s-75.237-.257-101.8-1.469c-24.562-1.121-37.9-5.225-46.778-8.674a78.051,78.051,0,0,1-28.966-18.845,78.053,78.053,0,0,1-18.845-28.966c-3.45-8.877-7.554-22.216-8.674-46.778-1.212-26.564-1.469-34.532-1.469-101.8s0.257-75.233,1.469-101.8c1.121-24.562,5.224-37.9,8.674-46.778A78.052,78.052,0,0,1,78.458,78.458a78.053,78.053,0,0,1,28.966-18.845c8.877-3.45,22.216-7.554,46.778-8.674,26.565-1.212,34.532-1.469,101.8-1.469m0-45.391c-68.418,0-77,.29-103.866,1.516-26.815,1.224-45.127,5.482-61.151,11.71a123.488,123.488,0,0,0-44.62,29.057A123.488,123.488,0,0,0,17.3,90.982C11.077,107.007,6.819,125.319,5.6,152.134,4.369,179,4.079,187.582,4.079,256S4.369,333,5.6,359.866c1.224,26.815,5.482,45.127,11.71,61.151a123.489,123.489,0,0,0,29.057,44.62,123.486,123.486,0,0,0,44.62,29.057c16.025,6.228,34.337,10.486,61.151,11.71,26.87,1.226,35.449,1.516,103.866,1.516s77-.29,103.866-1.516c26.815-1.224,45.127-5.482,61.151-11.71a128.817,128.817,0,0,0,73.677-73.677c6.228-16.025,10.486-34.337,11.71-61.151,1.226-26.87,1.516-35.449,1.516-103.866s-0.29-77-1.516-103.866c-1.224-26.815-5.482-45.127-11.71-61.151a123.486,123.486,0,0,0-29.057-44.62A123.487,123.487,0,0,0,421.018,17.3C404.993,11.077,386.681,6.819,359.866,5.6,333,4.369,324.418,4.079,256,4.079h0Z"/>
          <path d="M256,126.635A129.365,129.365,0,1,0,385.365,256,129.365,129.365,0,0,0,256,126.635Zm0,213.338A83.973,83.973,0,1,1,339.974,256,83.974,83.974,0,0,1,256,339.973Z"/>
          <circle cx="390.476" cy="121.524" r="30.23"/>
        </svg>
      </a>
    </li>
    <li>
      <a class="c-link c-link--github" href="#0" aria-label="Github">
        <svg viewBox="0 0 24 24">
          <path d="m12 2a10 10 0 0 0 -10 10c0 4.42 2.87 8.17 6.84 9.5 0.5 0.08 0.66-0.23 0.66-0.5v-1.69c-2.77 0.6-3.36-1.34-3.36-1.34-0.46-1.16-1.11-1.47-1.11-1.47-0.91-0.62 0.07-0.6 0.07-0.6 1 0.07 1.53 1.03 1.53 1.03 0.87 1.52 2.34 1.07 2.91 0.83 0.09-0.65 0.35-1.09 0.63-1.34-2.22-0.25-4.55-1.11-4.55-4.92 0-1.11 0.38-2 1.03-2.71-0.1-0.25-0.45-1.29 0.1-2.64 0 0 0.84-0.27 2.75 1.02 0.79-0.22 1.65-0.33 2.5-0.33s1.71 0.11 2.5 0.33c1.91-1.29 2.75-1.02 2.75-1.02 0.55 1.35 0.2 2.39 0.1 2.64 0.65 0.71 1.03 1.6 1.03 2.71 0 3.82-2.34 4.66-4.57 4.91 0.36 0.31 0.69 0.92 0.69 1.85v2.74c0 0.27 0.16 0.59 0.67 0.5 3.97-1.34 6.83-5.08 6.83-9.5a10 10 0 0 0 -10 -10z"/>
        </svg>
      </a>
    </li>
    <li>
      <a class="c-link c-link--codepen" href="#0" aria-label="Codepen">
        <svg viewBox="0 0 24 24">
          <path d="m19.45 13.29l-1.95-1.29 1.95-1.29m-6.68 8.07v-3.61l3.36-2.24 2.7 1.81m-6.83-0.91l-2.74-1.83 2.74-1.83 2.74 1.83m-3.51 6.78l-6.06-4.04 2.7-1.81 3.36 2.24m-6.68-4.46l1.95 1.29-1.95 1.29m6.68-8.07v3.61l-3.36 2.24-2.7-1.81m7.6-4.04l6.06 4.04-2.7 1.81-3.36-2.24m8.23 0.33v-0.04c0-0.02 0-0.04-0.03-0.06 0-0.01 0-0.03-0.01-0.06 0 0-0.01 0-0.02-0.04 0-0.01-0.01-0.02-0.02-0.03 0-0.02-0.01-0.04-0.02-0.05-0.01-0.02-0.02-0.03-0.02-0.04-0.01-0.02-0.03-0.03-0.04-0.05-0.01-0.01-0.01-0.02-0.02-0.03a0.04 0.04 0 0 0 -0.04 -0.04l-0.03-0.03c-0.02-0.02-0.03-0.03-0.05-0.04l-0.03-0.03c-0.01 0-0.01 0-0.01-0.01l-8.23-5.48c-0.26-0.17-0.6-0.17-0.86 0l-8.23 5.48c0 0.01 0 0.01-0.01 0.01l-0.03 0.03c-0.02 0.01-0.03 0.02-0.05 0.04l-0.03 0.03-0.04 0.04c-0.01 0.01-0.01 0.02-0.02 0.03-0.01 0.02-0.03 0.03-0.04 0.05 0 0.01-0.01 0.02-0.02 0.04-0.01 0.01-0.02 0.03-0.02 0.05-0.01 0.01-0.02 0.02-0.02 0.03-0.01 0.04-0.01 0.04-0.02 0.04-0.01 0.03-0.01 0.05-0.01 0.06-0.03 0.02-0.03 0.04-0.03 0.06v0.04 0.1 5.48 0.1 0.04c0 0.02 0 0.04 0.03 0.06 0 0.01 0 0.03 0.01 0.06 0.01 0 0.01 0 0.02 0.04 0 0.01 0.01 0.02 0.02 0.03 0 0.02 0.01 0.04 0.02 0.05 0.01 0.02 0.02 0.03 0.02 0.04 0.01 0.02 0.03 0.03 0.04 0.05 0.01 0.01 0.01 0.02 0.02 0.03 0.02 0.01 0.03 0.03 0.04 0.04l0.03 0.03c0.02 0.02 0.03 0.03 0.05 0.04l0.03 0.03c0.01 0 0.01 0 0.01 0.01l8.23 5.48c0.13 0.09 0.28 0.13 0.43 0.13s0.3-0.04 0.43-0.13l8.23-5.48c0-0.01 0-0.01 0.01-0.01l0.03-0.03c0.02-0.01 0.03-0.02 0.05-0.04l0.03-0.03c0.01-0.01 0.02-0.03 0.04-0.04 0.01-0.01 0.01-0.02 0.02-0.03 0.01-0.02 0.03-0.03 0.04-0.05 0-0.01 0.01-0.02 0.02-0.04 0.01-0.01 0.02-0.03 0.02-0.05 0.01-0.01 0.02-0.02 0.02-0.03 0.01-0.04 0.02-0.04 0.02-0.04 0.01-0.03 0.01-0.05 0.01-0.06 0.03-0.02 0.03-0.04 0.03-0.06v-0.04-0.1-5.48-0.1z"/>
        </svg>
      </a>
    </li>
    <li>
      <a class="c-link c-link--baekjoon" href="#0" aria-label="Baekjoon">
        <svg viewBox="0 0 180.000000 180.000000" preserveAspectRatio="xMidYMid meet">
          <g transform="translate(0.000000,180.000000) scale(0.100000,-0.100000)" stroke="none">
          <path d="M410 1426 c0 -2 -63 -239 -140 -526 -77 -288 -140 -527 -140 -531 0
          -5 18 -9 39 -9 39 0 40 1 55 53 40 140 266 995 266 1005 0 7 -16 12 -40 12
          -22 0 -40 -2 -40 -4z"/>
          <path d="M722 1113 l-200 -208 201 -207 200 -208 53 0 c30 0 54 3 54 8 0 4
          -43 50 -96 102 -52 52 -141 143 -196 202 l-100 108 191 196 c105 108 191 200
          191 205 0 5 -22 9 -49 9 l-49 0 -200 -207z"/>
          <path d="M1180 1314 c0 -3 88 -96 195 -206 l194 -201 -200 -206 -201 -206 53
          -3 53 -3 203 203 c112 112 202 209 201 215 -2 7 -93 103 -202 213 l-200 200
          -48 0 c-26 0 -48 -3 -48 -6z"/>
          </g>
        </svg>
      </a>
    </li>
  </ul>
</div>
              
            
!

CSS

              
                body {
  font-size: 16px;
}
.sns-group {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

ul {
  margin: 0;
  padding: 0;
}

.sns-group li {
  display: inline-block;
  margin-right: 15px;
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

.c-link {
  position: relative;
  color: #bbb;
}

.c-link::before,
.c-link::after {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -5px);
  opacity: 0;
  transition: .2s;
}

.c-link::before {
  content: '';
  bottom: calc(100% + 2px);
  border: solid 5px transparent;
  border-top-color: currentColor;
}

.c-link::after {
  content: attr(aria-label);
  bottom: calc(100% + 12px);
  padding: .5rem .75rem;
  color: white;
  font-size: .875rem;
  border-radius: 3px;
}

.c-link:hover::before,
.c-link:hover::after {
  opacity: 1;
}

.c-link svg {
  fill: currentColor;
  transition: .2s;
  width: 24px;
  height: 24px;
}

.c-link--facebook:hover  { color: #3b5998 }
.c-link--twitter:hover  { color: #1da1f2 }
.c-link--linkedin:hover  { color: #0077b5 }
.c-link--instagram:hover { color: #833ab4 }
.c-link--tistory:hover  { color: #ed5306 }
.c-link--github:hover   { color: #25292f }
.c-link--codepen:hover    { color: #000000 }
.c-link--baekjoon:hover { color: #0078c2 }

.c-link--facebook:hover::after  { background: #3b5998 }
.c-link--twitter:hover::after  { background: #1da1f2 }
.c-link--linkedin:hover::after  { background: #0077b5 }
.c-link--instagram:hover::after { background: #833ab4 }
.c-link--tistory:hover::after  { background: #ed5306 }
.c-link--github:hover::after   { background: #25292f }
.c-link--codepen:hover::after    { background: #000000 }
.c-link--baekjoon:hover::after { background: #0078c2 }
              
            
!

JS

              
                
              
            
!
999px

Console