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="soc">

  <a href="#" class="icon codepen" title="CodePen">
    <svg viewBox="0 0 512 512">
      <path d="M427 201.9c-0.6-4.2-2.9-8-6.4-10.3L264.2 87.3c-4.9-3.3-11.4-3.3-16.3 0L91.4 191.6c-4 2.7-6.5 7.4-6.5 12.2v104.3c0 4.8 2.5 9.6 6.5 12.2l156.4 104.3c4.9 3.3 11.4 3.3 16.3 0L420.6 320.4c4-2.6 6.6-7.4 6.6-12.2V203.9C427.1 203.2 427.1 202.6 427 201.9 427 201.7 427.1 202.6 427 201.9zM270.7 127.1l115.2 76.8 -51.5 34.4 -63.8-42.7V127.1zM241.3 127.1v68.6l-63.8 42.7 -51.5-34.4L241.3 127.1zM114.3 231.4l36.8 24.6 -36.8 24.6V231.4zM241.3 384.9L126.1 308.1l51.5-34.4 63.8 42.6V384.9zM256 290.8l-52-34.8 52-34.8 52 34.8L256 290.8zM270.7 384.9V316.3l63.8-42.6 51.5 34.4L270.7 384.9zM397.7 280.6l-36.8-24.6 36.8-24.6V280.6z"/>
    </svg><!--[if lt IE 9]><em>CodePen</em><![endif]-->
  </a>


  <a href="#" class="icon facebook" title="Facebook">
    <svg viewBox="0 0 512 512">
      <path d="M211.9 197.4h-36.7v59.9h36.7V433.1h70.5V256.5h49.2l5.2-59.1h-54.4c0 0 0-22.1 0-33.7 0-13.9 2.8-19.5 16.3-19.5 10.9 0 38.2 0 38.2 0V82.9c0 0-40.2 0-48.8 0 -52.5 0-76.1 23.1-76.1 67.3C211.9 188.8 211.9 197.4 211.9 197.4z"/>
    </svg><!--[if lt IE 9]><em>Facebook</em><![endif]-->
  </a>

  <a href="#" class="icon github" title="GitHub">
    <svg viewBox="71 71 370 370">
      <path d="M256 70.7c-102.6 0-185.9 83.2-185.9 185.9 0 82.1 53.3 151.8 127.1 176.4 9.3 1.7 12.3-4 12.3-8.9V389.4c-51.7 11.3-62.5-21.9-62.5-21.9 -8.4-21.5-20.6-27.2-20.6-27.2 -16.9-11.5 1.3-11.3 1.3-11.3 18.7 1.3 28.5 19.2 28.5 19.2 16.6 28.4 43.5 20.2 54.1 15.4 1.7-12 6.5-20.2 11.8-24.9 -41.3-4.7-84.7-20.6-84.7-91.9 0-20.3 7.3-36.9 19.2-49.9 -1.9-4.7-8.3-23.6 1.8-49.2 0 0 15.6-5 51.1 19.1 14.8-4.1 30.7-6.2 46.5-6.3 15.8 0.1 31.7 2.1 46.6 6.3 35.5-24 51.1-19.1 51.1-19.1 10.1 25.6 3.8 44.5 1.8 49.2 11.9 13 19.1 29.6 19.1 49.9 0 71.4-43.5 87.1-84.9 91.7 6.7 5.8 12.8 17.1 12.8 34.4 0 24.9 0 44.9 0 51 0 4.9 3 10.7 12.4 8.9 73.8-24.6 127-94.3 127-176.4C441.9 153.9 358.6 70.7 256 70.7z"/>
    </svg><!--[if lt IE 9]><em>GitHub</em><![endif]-->
  </a>

  <a href="#" class="icon linkedin" title="LinkedIn">
    <svg viewBox="0 0 512 512">
      <path d="M186.4 142.4c0 19-15.3 34.5-34.2 34.5 -18.9 0-34.2-15.4-34.2-34.5 0-19 15.3-34.5 34.2-34.5C171.1 107.9 186.4 123.4 186.4 142.4zM181.4 201.3h-57.8V388.1h57.8V201.3zM273.8 201.3h-55.4V388.1h55.4c0 0 0-69.3 0-98 0-26.3 12.1-41.9 35.2-41.9 21.3 0 31.5 15 31.5 41.9 0 26.9 0 98 0 98h57.5c0 0 0-68.2 0-118.3 0-50-28.3-74.2-68-74.2 -39.6 0-56.3 30.9-56.3 30.9v-25.2H273.8z"/>
    </svg><!--[if lt IE 9]><em>LinkedIn</em><![endif]-->
  </a>

  <a href="#" class="icon stackoverflow" title="StackOverflow">
    <svg viewBox="0 0 512 512">
      <path d="M294.8 361.2l-122 0.1 0-26 122-0.1L294.8 361.2zM377.2 213.7L356.4 93.5l-25.7 4.5 20.9 120.2L377.2 213.7zM297.8 301.8l-121.4-11.2 -2.4 25.9 121.4 11.2L297.8 301.8zM305.8 267.8l-117.8-31.7 -6.8 25.2 117.8 31.7L305.8 267.8zM321.2 238l-105-62 -13.2 22.4 105 62L321.2 238zM346.9 219.7l-68.7-100.8 -21.5 14.7 68.7 100.8L346.9 219.7zM315.5 275.5v106.5H155.6V275.5h-20.8v126.9h201.5V275.5H315.5z"/>
    </svg><!--[if lt IE 9]><em>StackOverflow</em><![endif]-->
  </a>
  
    <a href="#" class="icon upwork" title="UpWork">
    <svg viewBox="-110 -225 920 920">
      <path d="m 592.59529,300.59631 c 36.58625,-9.5295 63.77264,-44.46832 63.77264,-81.95796 0,-37.16876 -25.95291,-71.42332 -62.23178,-82.13813 -12.86527,-3.79967 -36.71324,-3.46066 -48.20411,0.68531 -12.7566,4.60259 -20.16438,9.40747 -30.45339,19.75281 -16.84634,16.93855 -26.37051,38.59397 -34.73118,78.96915 -6.14865,29.69307 -6.31507,28.4118 4.74402,36.53192 17.57043,12.90113 41.45142,24.07645 60.3235,28.22895 12.26043,2.69768 36.28861,2.66069 46.7803,-0.072 z M 335.20314,527.3568 c -0.53691,-0.53688 -0.97619,-2.42776 -0.97619,-4.20191 0,-2.7372 12.82562,-65.15293 19.6974,-95.85702 2.78096,-12.42578 6.1354,-28.2672 16.89837,-79.8031 4.87761,-23.35522 9.474,-45.09973 10.21423,-48.32116 3.07781,-13.39399 3.15166,-12.90397 -3.20773,-21.27942 -9.9285,-13.07598 -27.65809,-40.76716 -36.84307,-57.54379 -4.71829,-8.61819 -9.05853,-15.96593 -9.64499,-16.32836 -0.58643,-0.36246 -1.48056,9.03773 -1.98688,20.88931 -1.20806,28.27493 -4.61392,43.11617 -15.69795,68.40516 -9.32235,21.26963 -33.27305,49.74573 -54.30807,64.56953 -14.97462,10.55291 -35.0557,19.95066 -53.24556,24.91841 -13.36321,3.64955 -16.94593,4.00411 -40.99976,4.05746 -24.25133,0.0539 -27.52678,-0.2606 -40.99976,-3.93665 C 107.6679,378.44106 87.034439,369.04648 73.263208,359.77748 59.598531,350.58021 39.237828,330.12263 29.690914,315.99785 18.686531,299.71679 13.242607,288.74623 8.5764047,273.44823 l -3.8118048,-12.49696 0,-127.50332 C 4.7645999,27.179921 5.0992306,5.666904 6.7737556,4.2771657 8.1947128,3.0978866 20.519428,2.7238983 48.871734,2.9996749 L 88.960523,3.389609 89.692691,120.53179 c 0.726874,116.30316 0.755246,117.20334 3.958352,125.68248 4.74177,12.5522 10.004307,20.8034 18.890877,29.61922 9.09297,9.02058 17.15733,14.09507 28.72451,18.07476 26.13408,8.99141 56.35321,2.03421 75.84996,-17.46254 9.71246,-9.71246 14.44695,-17.26362 19.25994,-30.71821 l 3.40475,-9.5178 0.73215,-116.41004 0.73213,-116.410051 42.46402,-0.3561353 c 23.35522,-0.1959552 43.19717,0.1336457 44.09324,0.7321331 0.89602,0.5985495 3.99674,8.4489332 6.8904,17.4452642 12.04981,37.462226 27.59502,75.031005 44.42941,107.374459 11.61921,22.32359 26.94615,48.30063 28.50591,48.31353 0.50583,0.003 2.4287,-4.11067 4.27306,-9.14413 23.53349,-64.22555 73.90301,-107.982679 134.49995,-116.843116 18.66913,-2.729767 50.32064,-1.068372 66.77038,3.504843 30.9835,8.613735 55.24149,22.522971 77.08894,44.201832 25.65744,25.459441 41.09707,54.790651 48.14708,91.466681 2.37537,12.35741 1.95235,47.24335 -0.72798,60.03537 -7.62646,36.39738 -22.00126,62.675 -48.90937,89.40795 -37.39797,37.15453 -86.38779,53.33212 -141.94428,46.87331 -25.32941,-2.94471 -53.89908,-12.137 -75.82996,-24.39837 -4.90952,-2.74488 -9.30266,-4.99068 -9.76253,-4.99068 -0.832,0 -1.66887,3.42268 -6.98169,28.55342 -1.5323,7.24818 -4.47416,21.08559 -6.53749,30.74982 -4.76672,22.32667 -21.29337,99.84748 -22.32007,104.6958 -1.57371,7.43114 -0.87754,7.3214 -46.44221,7.3214 -23.52507,0 -43.21215,-0.43927 -43.74903,-0.97619 z"/>
    </svg><!--[if lt IE 9]><em>StackOverflow</em><![endif]-->
  </a>

</div>
              
            
!

CSS

              
                
$background: grey

html
  background: $background

.soc
  margin-top: 30px
  display: block
  list-style: none
  text-align: center
  li
    display: inline-block

  a, svg
    display: block
  a
    display: inline-block
    position: relative // IE8
    height: 150px // IE8
    width: 150px // IE8
    
    
  svg
    height: 100%
    width: 100%
 
.icon
  background: black 
  border-radius: 100%
  color: white // IE8
  fill: white
  &:hover
    background: white 
    color: black // IE8
    fill: black

  
.facebook
  &:hover
    color: #3B579D // IE8
    fill: #3B579D
  
.github
  background: white
  color: black // IE8
  fill: black  
  &:hover
    background: #6441a5
    color: white // IE8
    fill: white

.linkedin
  &:hover
    color: #007BB6 // IE8
    fill: #007BB6

.stackoverflow
  &:hover
    color: #fe7a15 // IE8
    fill: #fe7a15
  
.upwork
  &:hover
    color: #96D953 // IE8
    fill: #96D953
  

  
  
  
              
            
!

JS

              
                /*

SVG CodePen/Facebook/GitHub/LinkedIn/StackOverflow Icons!
(License at the end of this section)

If you get some use out of these please feel free to throw money at me via PayPal: hackzilla@mail.ru

I created these because I needed a good SVG icons and couldn't find one. Hopefully it comes in handy for other people too.

SVGs compressed using:

Inkscape - https://inkscape.org/en/

---

The MIT License (MIT)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

https://opensource.org/licenses/MIT

*/
              
            
!
999px

Console