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>
  <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 390 540" style="height: 50vh; width: auto;" id="navigation-svg">
  <defs>
    <style>
       .svg-main {
        cursor: pointer;

        transition: 0.4s ease;
      }
      
      /* Uncomment these to use the :hover instead of GSAP */
      
      /*.svg-main:hover#linkedin-icon {
        transform: matrix(1.1, 0, 0, 1.1, -12.6111328125, -42.90703125);
      }
      
      .svg-main:hover#facebook-icon {
        transform: matrix(1.1, 0, 0, 1.1, -26.3884765625, -34.953125);
      }
      
      .svg-main:hover#contact-icon {
        transform: matrix(1.1, 0, 0, 1.1, -12.6111328125, -26.999609375);
      }
      
      .svg-main:hover#services-icon {
        transform: matrix(1.1, 0, 0, 1.1, -26.3884765625, -19.048046875);
      }
      
      .svg-main:hover#about-icon {
        transform: matrix(1.1, 0, 0, 1.1, -12.6111328125, -11.090625);
      }*/
      
      /* End */
      
      a.svg-main:hover {
        text-decoration: none;
      }

      .pointer-less {
        pointer-events: none;
      }

      .hex {
        fill: #323940;

        transition: 0.4s ease;
      }

      .svg-main:hover .hex {
        fill: #ECEFEF;
      }

      .fb-hex {
        fill: #3b5998;
      }

      .svg-main:hover .fb-hex {
        fill: #fff;
      }

      .li-hex {
        fill: #0077b5;
      }

      .svg-main:hover .li-hex {
        fill: #fff;
      }

      .hex-font {
        font-size: 38.93px;
        font-family: AcuminPro-Regular, "acumin-pro", sans-serif;
        fill: #fff;

        transition: 0.4s ease;
      }

      .svg-main:hover .hex-font {
        fill: #323940;
      }

      .fb-hex-f {
        fill: #fff;

        transition: 0.4s ease;
      }

      .svg-main:hover  .fb-hex-f {
        fill: #3b5998;
      }

      .li-hex-in {
        fill: #fff;

        transition: 0.4s ease;
      }
  
      .svg-main:hover .li-hex-in {
        fill: #0077b5;
      }

      /* ########### LETTTER SPACING ########### */

      .cls-6 {
        letter-spacing: -0.01em;
      }

      .cls-7 {
        letter-spacing: 0em;
      }

      .cls-8 {
        letter-spacing: 0.01em;
      }

      .cls-9 {
        letter-spacing: 0em;
      }

      .cls-10 {
        letter-spacing: 0.03em;
      }

      .cls-11 {
        letter-spacing: 0em;
      }

      .cls-12 {
        letter-spacing: 0em;
      }

      .cls-13 {
        letter-spacing: 0.01em;
      }

      .cls-14 {
        letter-spacing: 0.01em;
      }

      .cls-15 {
        letter-spacing: 0.01em;
      }
    </style>
    <filter id="f3" x="-50%" y="-50%" width="200%" height="200%">
      <feOffset result="offOut" in="SourceAlpha" dx="0" dy="0" />
      <feGaussianBlur result="blurOut" in="offOut" stdDeviation="0" />
      <feBlend in="SourceGraphic" in2="blurOut" mode="normal" />
    </filter>
    <g id="hex"></g>
  </defs>
  <g id="svg-container">
    <a xlink:href="https://www.linkedin.com/in/ryanairth-sweeney" id="linkedin-icon" class="svg-main inactive" data-svg-origin="126.111328125 429.0703125">
      <title>Linked In</title>
      <path class="li-hex" d="M166.38,352.59H85.86A6.74,6.74,0,0,0,80,356L39.75,425.7a6.74,6.74,0,0,0,0,6.74L80,502.18a6.74,6.74,0,0,0,5.84,3.37h80.53a6.74,6.74,0,0,0,5.84-3.37l40.26-69.74a6.74,6.74,0,0,0,0-6.74L172.23,356A6.74,6.74,0,0,0,166.38,352.59Z" filter="url(#f3)"/>
      <g class="pointer-less">
        <circle class="li-hex-in" cx="104.88" cy="407.88" r="7.25"/>
        <rect class="li-hex-in" x="98.88" y="420" width="11.93" height="38.24"/>
        <path class="li-hex-in" d="M118.35,458.24h11.89V436.19s-.06-6.85,7.4-6.85c6.07,0,5.79,6,5.79,6v22.89h11.89V432.81s.79-14-13.66-14c-7.48,0-12,6.32-12,6.32v-5H118.35Z"/>
      </g>
    </a>
    <a xlink:href="https://www.facebook.com/" id="facebook-icon" class="svg-main inactive" data-svg-origin="263.884765625 349.53125">
      <title>Facebook</title>
      <path class="fb-hex" d="M304.14,273.05H223.62a6.74,6.74,0,0,0-5.84,3.37l-40.26,69.74a6.74,6.74,0,0,0,0,6.74l40.26,69.74a6.74,6.74,0,0,0,5.84,3.37h80.53a6.74,6.74,0,0,0,5.84-3.37l40.26-69.74a6.74,6.74,0,0,0,0-6.74L310,276.42A6.74,6.74,0,0,0,304.14,273.05Z" filter="url(#f3)"/>
      <path class="fb-hex-f"  d="M257,378.71h11.12V348.47h8.4l1-8.4h-9.42v-5.38c0-7.25,7.64-4.26,9.42-4l1.39-9c-5.63-.75-12.33-1.11-15.72.5-3.66,1.75-6.2,4.78-6.2,8.2v9.63h-5.78v8.4H257Z"/>
    </a>
    <g id="contact-icon" onclick="changeState(3);" class="svg-main inactive" data-svg-origin="126.111328125 269.99609375">
      <title>Contact</title>
      <path class="hex" d="M166.38,193.51H85.86A6.74,6.74,0,0,0,80,196.89L39.75,266.63a6.74,6.74,0,0,0,0,6.74L80,343.11a6.74,6.74,0,0,0,5.84,3.37h80.53a6.74,6.74,0,0,0,5.84-3.37l40.26-69.74a6.74,6.74,0,0,0,0-6.74l-40.26-69.74A6.74,6.74,0,0,0,166.38,193.51Z" filter="url(#f3)"/>
      <text class="hex-font" transform="translate(58.4 284.01)">Co<tspan class="cls-6" x="48.12" y="0">n</tspan><tspan class="cls-7" x="69.92" y="0">ta</tspan><tspan class="cls-8" x="102.93" y="0">c</tspan><tspan class="cls-7" x="123.02" y="0">t</tspan></text>
    </g>
    <g id="services-icon" onclick="changeState(2);" class="svg-main inactive" data-svg-origin="263.884765625 190.48046875">
      <title>Services</title>
      <path class="hex" d="M304.14,114H223.62a6.74,6.74,0,0,0-5.84,3.37l-40.26,69.74a6.74,6.74,0,0,0,0,6.74l40.26,69.74a6.74,6.74,0,0,0,5.84,3.37h80.53a6.74,6.74,0,0,0,5.84-3.37l40.26-69.74a6.74,6.74,0,0,0,0-6.74L310,117.35A6.74,6.74,0,0,0,304.14,114Z" filter="url(#f3)"/>
      <text class="hex-font" transform="translate(190.79 204.55)"><tspan class="cls-9">S</tspan><tspan x="23.75" y="0">e</tspan><tspan class="cls-10" x="44.11" y="0">r</tspan><tspan class="cls-11" x="58.98" y="0">v</tspan><tspan x="77.94" y="0">i</tspan><tspan class="cls-12" x="87.17" y="0">c</tspan><tspan class="cls-13" x="107.06" y="0">e</tspan><tspan x="127.73" y="0">s</tspan></text>
    </g>
    <g id="about-icon" onclick="changeState(1);" class="svg-main inactive" data-svg-origin="126.111328125 110.90625">
      <title>About</title>
      <path class="hex" d="M166.38,34.44H85.86A6.74,6.74,0,0,0,80,37.82L39.75,107.56a6.74,6.74,0,0,0,0,6.74L80,184a6.74,6.74,0,0,0,5.84,3.37h80.53a6.74,6.74,0,0,0,5.84-3.37l40.26-69.74a6.74,6.74,0,0,0,0-6.74L172.23,37.82A6.74,6.74,0,0,0,166.38,34.44Z" filter="url(#f3)"/>
      <text class="hex-font" transform="translate(74.07 125.01)">A<tspan class="cls-14" x="25.69" y="0">b</tspan><tspan x="48.16" y="0">o</tspan><tspan class="cls-15" x="69.57" y="0">u</tspan><tspan class="cls-7" x="91.68" y="0">t</tspan></text>
    </g>
  </g>
</svg>
</div>
              
            
!

CSS

              
                svg {
  background: #666;
}
              
            
!

JS

              
                $(".svg-main").hover(function() {
  var $element = $(this);
  
  /* This switches the order by taking this, detatching it and   adding it back to the bottom
  Enabling it causes some kind of errors where the hover event doesn't seem to fire properly or at all on FF, Edge and IE 11
  */
  $element.detach().appendTo("#svg-container");
  
  // Disabling this and relying on the :hover gives speed consistency
  TweenMax.to($element, 0.4, {ease:  Expo.easeOut, scale: 1.1, transformOrigin: "50% 50%"});
}, function() {
  var $element = $(this);
  // Disabling this and relying on the :hover gives speed consistency
  TweenMax.to($element, 0.4, {ease:  Expo.easeOut, scale: 1.0, transformOrigin: "50% 50%"});
});
              
            
!
999px

Console