Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <div class="socials">
  <div class="socials__btn">
    <svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 87.7 87.7" id="trigger" fill="#FF4F00">
    <path d="M44.5,86.3C20.7,86.3,1.3,67,1.3,43.2S20.7,0,44.5,0s43.2,19.4,43.2,43.2S68.3,86.3,44.5,86.3z M44.5,2
      C21.8,2,3.3,20.5,3.3,43.2s18.5,41.2,41.2,41.2s41.2-18.5,41.2-41.2S67.2,2,44.5,2z"/>
    <path d="M39.2,39.7L39.1,39c18.2-2.6,28.2-13,31.7-17.4l0.6,0.5C67.9,26.5,57.7,37.1,39.2,39.7z"/>
    <circle cx="39.3" cy="39.3" r="2.8"/>
    <circle cx="71" cy="21.9" r="2.8"/>
    <path d="M28.4,74.2c-3.5-4.4-9-13.5-6.9-25.6l0.7,0.1c-2.1,11.7,3.3,20.7,6.7,25L28.4,74.2z"/>
    <circle cx="21.8" cy="48.8" r="2.8"/>
    <circle cx="28.6" cy="73.8" r="2.8"/>
    <path d="M73,51.5l-0.8,0c0.3-9.4-3.3-18.3-10.1-25.3c-7-7.2-16.9-11.3-27-11.2l0-0.8c10.3,0,20.4,4.1,27.6,11.5
      C69.7,32.7,73.3,41.9,73,51.5z"/>
    <circle cx="72.6" cy="51.3" r="2.8"/>
    <circle cx="35.3" cy="14.6" r="2.8"/>
    <path d="M49.9,72.2c-22.6-1.1-38-15.9-44.8-29.4c-5-9.9-5.8-19.6-2-25.2c2.4-3.6,6.6-5.4,12-5L15,13.4C9.9,13,6,14.6,3.7,18
      c-3.6,5.4-2.8,14.8,2.1,24.5c6.7,13.3,21.8,27.9,44.1,29L49.9,72.2z"/>
    <circle cx="49.8" cy="71.8" r="2.8"/>
    <path d="M18.1,76.4C7.6,74.7,0.5,67.2,0,57.2c-0.5-9.6,5.4-21,19.7-24.8l0.2,0.7C6,36.9,0.3,47.9,0.8,57.2
      c0.4,7.6,5.2,16.5,17.4,18.5L18.1,76.4z"/>
    <circle cx="19.7" cy="32.8" r="2.8"/>
    <path d="M66.9,87.7c-0.3,0-0.7,0-1,0c-6.3-0.6-12.1-6.4-15.4-15.7l0.7-0.3C54.5,80.7,60,86.4,66,86.9c3.2,0.3,6.1-1,7.5-3.4
      c1.4-2.5,1-5.7-1.1-8.8l0.6-0.4c2.3,3.4,2.8,6.9,1.2,9.6C72.8,86.3,70,87.7,66.9,87.7z"/>
    <path d="M57.6,12.1l-0.7-0.2c1.7-5.2,4.7-8.5,8.3-9.1c2.2-0.4,4.3,0.4,5.6,1.9c1.3,1.6,1.5,3.7,0.6,5.8l-0.7-0.3
      c0.8-1.9,0.6-3.7-0.5-5c-1.1-1.4-3-2-4.9-1.7C62,4,59.2,7.2,57.6,12.1z"/>
    <circle cx="57.3" cy="11.8" r="2.8"/>
    </svg>
  </div>

  <a href="//github.com/grayghostvisuals">
    <svg id="github" class="custom-icon" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 100 100" aria-labelledby="github-title" aria-describedby="github-description" role="img">
      <title id="github-title">Github</title>
      <desc id="github-description">Take a peek at my contributions and repositories</desc>
      <path class="inner-shape" d="M50,1C22.938,1,1,22.938,1,50s21.938,49,49,49s49-21.938,49-49S77.062,1,50,1z M79.099,79.099 c-3.782,3.782-8.184,6.75-13.083,8.823c-1.245,0.526-2.509,0.989-3.79,1.387v-7.344c0-3.86-1.324-6.699-3.972-8.517 c1.659-0.16,3.182-0.383,4.57-0.67c1.388-0.287,2.855-0.702,4.402-1.245c1.547-0.543,2.935-1.189,4.163-1.938 c1.228-0.75,2.409-1.723,3.541-2.919s2.082-2.552,2.847-4.067s1.372-3.334,1.818-5.455c0.446-2.121,0.67-4.458,0.67-7.01 c0-4.945-1.611-9.155-4.833-12.633c1.467-3.828,1.308-7.991-0.478-12.489l-1.197-0.143c-0.829-0.096-2.321,0.255-4.474,1.053 c-2.153,0.798-4.57,2.105-7.249,3.924c-3.797-1.053-7.736-1.579-11.82-1.579c-4.115,0-8.039,0.526-11.772,1.579 c-1.69-1.149-3.294-2.097-4.809-2.847c-1.515-0.75-2.727-1.26-3.637-1.532c-0.909-0.271-1.754-0.439-2.536-0.503 c-0.782-0.064-1.284-0.079-1.507-0.048c-0.223,0.031-0.383,0.064-0.478,0.096c-1.787,4.53-1.946,8.694-0.478,12.489 c-3.222,3.477-4.833,7.688-4.833,12.633c0,2.552,0.223,4.889,0.67,7.01c0.447,2.121,1.053,3.94,1.818,5.455 c0.765,1.515,1.715,2.871,2.847,4.067s2.313,2.169,3.541,2.919c1.228,0.751,2.616,1.396,4.163,1.938 c1.547,0.543,3.014,0.957,4.402,1.245c1.388,0.287,2.911,0.511,4.57,0.67c-2.616,1.787-3.924,4.626-3.924,8.517v7.487 c-1.445-0.43-2.869-0.938-4.268-1.53c-4.899-2.073-9.301-5.041-13.083-8.823c-3.782-3.782-6.75-8.184-8.823-13.083 C9.934,60.948,8.847,55.56,8.847,50s1.087-10.948,3.231-16.016c2.073-4.899,5.041-9.301,8.823-13.083s8.184-6.75,13.083-8.823 C39.052,9.934,44.44,8.847,50,8.847s10.948,1.087,16.016,3.231c4.9,2.073,9.301,5.041,13.083,8.823 c3.782,3.782,6.75,8.184,8.823,13.083c2.143,5.069,3.23,10.457,3.23,16.016s-1.087,10.948-3.231,16.016 C85.848,70.915,82.88,75.317,79.099,79.099L79.099,79.099z"></path>
    </svg>
  </a>

  <a href="//twitter.com/gryghostvisuals">
    <svg id="twitter" class="custom-icon" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 100 100" aria-labelledby="twitter-title" aria-describedby="twitter-description" role="img">
      <title id="twitter-title">Twitter</title>
      <desc id="twitter-description">Follow My Tweets</desc>
      <path class="inner-shape" d="M99.001,19.428c-3.606,1.608-7.48,2.695-11.547,3.184c4.15-2.503,7.338-6.466,8.841-11.189 c-3.885,2.318-8.187,4-12.768,4.908c-3.667-3.931-8.893-6.387-14.676-6.387c-11.104,0-20.107,9.054-20.107,20.223 c0,1.585,0.177,3.128,0.52,4.609c-16.71-0.845-31.525-8.895-41.442-21.131C6.092,16.633,5.1,20.107,5.1,23.813 c0,7.017,3.55,13.208,8.945,16.834c-3.296-0.104-6.397-1.014-9.106-2.529c-0.002,0.085-0.002,0.17-0.002,0.255 c0,9.799,6.931,17.972,16.129,19.831c-1.688,0.463-3.463,0.71-5.297,0.71c-1.296,0-2.555-0.127-3.783-0.363 c2.559,8.034,9.984,13.882,18.782,14.045c-6.881,5.424-15.551,8.657-24.971,8.657c-1.623,0-3.223-0.096-4.796-0.282 c8.898,5.738,19.467,9.087,30.82,9.087c36.982,0,57.206-30.817,57.206-57.543c0-0.877-0.02-1.748-0.059-2.617 C92.896,27.045,96.305,23.482,99.001,19.428z"></path>
    </svg>
  </a>

  <a href="https://dribbble.com/grayghostvisuals">
    <svg id="dribble" class="custom-icon" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 100 100" aria-labelledby="dribbble-title" aria-describedby="dribbble-description" role="img">
      <title id="dribbble-title">Dribbble</title>
      <desc id="dribbble-description">View posted shots and previews of my work</desc>
      <path class="inner-shape" d="M74.277,22.662c-0.659,0.938-6.171,8.349-19.194,13.229C49.082,24.865,42.43,15.808,41.417,14.452 c2.754-0.663,5.627-1.018,8.582-1.018C59.304,13.434,67.809,16.925,74.277,22.662L74.277,22.662z M52.56,50.375 c-18.888,6.105-28.938,22.747-29.768,24.167c-5.849-6.493-9.415-15.08-9.415-24.486c0-0.374,0.008-0.748,0.019-1.119 c1.602,0.032,19.349,0.262,37.638-5.212c1.049,2.052,2.049,4.135,2.969,6.215C53.518,50.076,53.037,50.221,52.56,50.375z M50,1 C22.938,1,1,22.938,1,50s21.938,49,49,49s49-21.938,49-49S77.062,1,50,1z M50,92.875C26.358,92.875,7.125,73.642,7.125,50 S26.358,7.125,50,7.125S92.875,26.358,92.875,50S73.642,92.875,50,92.875z M60.328,46.641c-0.76-1.786-1.578-3.56-2.429-5.305 c13.541-5.528,19.677-13.395,20.45-14.439c5.1,6.232,8.189,14.169,8.27,22.813c-1.207-0.256-13.315-2.711-25.501-1.179 C60.861,47.904,60.599,47.274,60.328,46.641L60.328,46.641z M48.009,38.093c-17.13,4.549-32.218,4.484-33.856,4.462 c2.375-11.364,10.033-20.809,20.279-25.642C35.397,18.237,41.941,27.306,48.009,38.093L48.009,38.093z M56.251,56.077 c0.08-0.028,0.161-0.054,0.241-0.081c5.141,13.36,7.268,24.559,7.813,27.771C59.908,85.64,55.072,86.677,50,86.677 c-8.466,0-16.27-2.889-22.479-7.731C28.179,77.599,35.595,63.274,56.251,56.077L56.251,56.077z M63.348,54.303 c11.477-1.837,21.559,1.171,22.811,1.566c-1.633,10.19-7.481,18.99-15.698,24.545C70.086,78.187,68.137,67.467,63.348,54.303 L63.348,54.303z"></path>
    </svg>
  </a>

  <a href="//codepen.io/grayghostvisuals">
    <svg id="codepen" class="custom-icon" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="38 35 84 84" aria-labelledby="codepen-title" aria-describedby="codepen-description" role="img">
      <title id="codepen-title">CodePen</title>
      <desc id="codepen-description">See the fun stuff I build and prototype</desc>
      <g>
        <path fill="#999999" d="M78.3,37.9C56,37.9,37.9,56,37.9,78.2s18.1,40.3,40.3,40.4c22.3,0,40.4-18.1,40.4-40.4
          S100.5,37.9,78.3,37.9L78.3,37.9z M78.3,112c-18.6,0-33.7-15.1-33.7-33.7s15.1-33.7,33.7-33.7c18.6,0,33.7,15.1,33.7,33.7
          S96.9,112,78.3,112L78.3,112z"/>
        <path fill="#999999" d="M103.2,70.4C103.2,70.3,103.2,70.3,103.2,70.4c0-0.2,0-0.2-0.1-0.3c0,0,0-0.1,0-0.1c0-0.1,0-0.1-0.1-0.2
          c0,0,0-0.1,0-0.1c0,0,0-0.1-0.1-0.1c0,0,0-0.1-0.1-0.1c0,0-0.1-0.1-0.1-0.1c0,0,0-0.1-0.1-0.1c0,0-0.1-0.1-0.1-0.1
          c0,0-0.1-0.1-0.1-0.1c0,0-0.1-0.1-0.1-0.1c0,0-0.1,0-0.1-0.1c0,0,0,0,0,0L79.4,53.7c-0.7-0.5-1.7-0.5-2.4,0L54.3,68.9c0,0,0,0,0,0
          c0,0-0.1,0-0.1,0.1c0,0-0.1,0.1-0.1,0.1c0,0-0.1,0.1-0.1,0.1c0,0-0.1,0.1-0.1,0.1c0,0-0.1,0.1-0.1,0.1c0,0-0.1,0.1-0.1,0.1
          c0,0,0,0.1-0.1,0.1c0,0,0,0.1-0.1,0.1c0,0,0,0.1,0,0.1c0,0.1,0,0.1-0.1,0.1c0,0,0,0.1,0,0.1c0,0.1,0,0.1,0,0.2c0,0,0,0.1,0,0.1
          c0,0.1,0,0.2,0,0.3v15.3c0,0.1,0,0.2,0,0.3c0,0,0,0.1,0,0.1c0,0.1,0,0.1,0.1,0.2c0,0.1,0,0.1,0.1,0.1c0,0.1,0.1,0.1,0.1,0.1
          c0,0.1,0,0.1,0.1,0.1c0,0.1,0.1,0.1,0.1,0.1c0,0,0.1,0.1,0.1,0.1c0,0.1,0.1,0.1,0.1,0.1c0,0,0.1,0.1,0.1,0.1c0,0.1,0.1,0.1,0.1,0.1
          c0,0,0.1,0.1,0.1,0.1c0,0.1,0.1,0.1,0.1,0.1c0,0,0.1,0.1,0.1,0.1c0,0,0,0,0.1,0l22.8,15.3c0.4,0.3,0.8,0.3,1.2,0.4
          c0.4,0,0.8-0.1,1.2-0.4l22.8-15.2c0,0,0,0,0,0c0,0,0.1,0,0.1-0.1c0,0,0.1-0.1,0.1-0.1c0,0,0.1-0.1,0.1-0.1c0,0,0.1-0.1,0.1-0.1
          c0,0,0-0.1,0.1-0.1c0,0,0.1-0.1,0.1-0.1c0,0,0-0.1,0.1-0.1c0,0,0.1-0.1,0.1-0.1c0,0,0-0.1,0-0.1c0-0.1,0-0.1,0.1-0.2
          c0,0,0-0.1,0-0.1c0-0.1,0-0.1,0-0.2c0,0,0-0.1,0-0.1c0-0.1,0-0.2,0-0.3V70.6C103.2,70.5,103.2,70.5,103.2,70.4L103.2,70.4z
           M80.4,59.4l16.8,11.2l-7.5,5l-9.3-6.2V59.4z M76.1,59.5v10l-9.3,6.2l-7.5-5L76.1,59.5L76.1,59.5z M57.6,74.7l5.4,3.6l-5.4,3.6
          V74.7z M76.1,97L59.3,85.9l7.5-5l9.3,6.2V97z M78.3,83.3l-7.6-5.1l7.6-5.1l7.6,5.1L78.3,83.3z M80.4,97V87l9.3-6.2l7.5,5L80.4,97z
           M98.9,81.8l-5.4-3.6l5.4-3.6V81.8z"/>
      </g>
    </svg>
  </a>
</div>
            
          
!
            
              // Demo
// ====================================
html,body {height: 100%;}body{display: flex;flex-direction:column;align-items: center;justify-content:center;width:100%;background: #F4F5F6;}svg{max-width:100%;}

// Required
// ====================================

$count: 5;
$proportion: 54px;

.socials {
  height: $proportion;
  position: relative;
  width: $proportion;

  svg#trigger {
    height: $proportion;
    position: relative;
    z-index: 2;
  }

  svg#trigger,
  a { width: $proportion; }

  svg path               { fill: #FF6500; }
  svg#trigger path       { fill: #FF6500; }
  svg#trigger:hover path { fill: #CA4D00; }

  a {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100px;
    position: absolute;
    top: 50%;
    left: 0;
    transition: 900ms all cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: top center;
    z-index: 0;
    opacity: 0;
    &:hover                  { cursor: pointer; }
    &:hover svg path         { fill: #CA4D00;     }
    &:hover svg#trigger path { fill: #FF7E00;   }
  }

  svg         { transform: rotate(-180deg); }
  svg#trigger { transform: rotate(0deg);    }
  svg#github  { transform: rotate(-90deg);  }
  svg#dribble { transform: rotate(90deg);   }

  svg:hover   { cursor: pointer; }
}

.socials.is-bloomed a {
  opacity: 1;
  padding-top: 50%;
  z-index: 0;
}

@for $i from 1 through $count {
  .socials.is-bloomed a:nth-of-type(#{$i}) {
    transform: rotate(($i * (360/($count - 1))) + deg);
    transition-delay: $i * 36ms;
  }
}
            
          
!
            
              var circle = document.querySelector('.socials__btn'),
    loader = document.querySelector('.socials');

circle.addEventListener('click', function() {
  loader.classList.toggle('is-bloomed');
});
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console