cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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.

Quick-add: + add another resource

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.

Quick-add: + add another resource

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.

            
              <div class="container">
  <h1>CSS3 Social <span>bu</span>ttons vol.3</h1>
  
    <div class="link">
    <a href="https://codepen.io/fox_hover/pen/aJZPxW" title="Check vol.1" target="_blanc"><i class="fa fa-arrow-circle-o-right" aria-hidden="true"></i> Check vol.1</a>
  <a href="https://codepen.io/fox_hover/pen/oZPzMQ" title="Check vol.2" target="_blanc"><i class="fa fa-arrow-circle-o-right" aria-hidden="true"></i> Check vol.2</a>
  <a href="https://github.com/eisenfox/css3-social-buttons-3" title="Check on GitHub" target="_blanc"><i class="fa fa-arrow-circle-o-right" aria-hidden="true"></i> Check on GitHub</a>
  <a href="http://100dayscode.co.uk/" title="Check Codepen Challenge" target="_blanc"><i class="fa fa-arrow-circle-o-right" aria-hidden="true"></i> Check Codepen Challenge</a>
</div>
  
  <div class="effects">
    
   <div class="effect aemilius">
    <h2>Aemilius</h2>
    <div class="buttons">
      <a href="#" class="fb" title="Join us on Facebook"><i class="fa fa-facebook" aria-hidden="true"></i></a>
      <a href="#" class="tw" title="Join us on Twitter"><i class="fa fa-twitter" aria-hidden="true"></i></a>
      <a href="#" class="g-plus" title="Join us on Google+"><i class="fa fa-google-plus" aria-hidden="true"></i></a>
      <a href="#" class="dribbble" title="Join us on Dribbble"><i class="fa fa-dribbble" aria-hidden="true"></i></a>
      <a href="#" class="vimeo" title="Join us on Vimeo"><i class="fa fa-vimeo" aria-hidden="true"></i></a>
    <a href="#" class="pinterest" title="Join us on Pinterest"><i class="fa fa-pinterest-p" aria-hidden="true"></i></a>
      <a href="#" class="insta" title="Join us on Instagram"><i class="fa fa-instagram" aria-hidden="true"></i></a>
      <a href="#" class="in" title="Join us on Linked In"><i class="fa fa-linkedin" aria-hidden="true"></i></a>
    </div>
  </div>
    
  <div class="effect mutius">
    <h2>Mutius</h2>
    <div class="buttons">
      <a href="#" class="fb" title="Join us on Facebook"><i class="fa fa-facebook" aria-hidden="true"></i></a>
      <a href="#" class="tw" title="Join us on Twitter"><i class="fa fa-twitter" aria-hidden="true"></i></a>
      <a href="#" class="g-plus" title="Join us on Google+"><i class="fa fa-google-plus" aria-hidden="true"></i></a>
      <a href="#" class="dribbble" title="Join us on Dribbble"><i class="fa fa-dribbble" aria-hidden="true"></i></a>
      <a href="#" class="vimeo" title="Join us on Vimeo"><i class="fa fa-vimeo" aria-hidden="true"></i></a>
    <a href="#" class="pinterest" title="Join us on Pinterest"><i class="fa fa-pinterest-p" aria-hidden="true"></i></a>
      <a href="#" class="insta" title="Join us on Instagram"><i class="fa fa-instagram" aria-hidden="true"></i></a>
      <a href="#" class="in" title="Join us on Linked In"><i class="fa fa-linkedin" aria-hidden="true"></i></a>
    </div>
  </div>
    
  <div class="effect orleans">
    <h2>Orleans</h2>
    <div class="buttons">
      <a href="#" class="fb" title="Join us on Facebook"><i class="fa fa-facebook" aria-hidden="true"></i></a>
      <a href="#" class="tw" title="Join us on Twitter"><i class="fa fa-twitter" aria-hidden="true"></i></a>
      <a href="#" class="g-plus" title="Join us on Google+"><i class="fa fa-google-plus" aria-hidden="true"></i></a>
      <a href="#" class="dribbble" title="Join us on Dribbble"><i class="fa fa-dribbble" aria-hidden="true"></i></a>
      <a href="#" class="vimeo" title="Join us on Vimeo"><i class="fa fa-vimeo" aria-hidden="true"></i></a>
    <a href="#" class="pinterest" title="Join us on Pinterest"><i class="fa fa-pinterest-p" aria-hidden="true"></i></a>
      <a href="#" class="insta" title="Join us on Instagram"><i class="fa fa-instagram" aria-hidden="true"></i></a>
      <a href="#" class="in" title="Join us on Linked In"><i class="fa fa-linkedin" aria-hidden="true"></i></a>
    </div>
  </div>
    
    <div class="effect cinna">
    <h2>Cinna</h2>
    <div class="buttons">
      <a href="#" class="fb" title="Join us on Facebook"><i class="fa fa-facebook" aria-hidden="true"></i></a>
      <a href="#" class="tw" title="Join us on Twitter"><i class="fa fa-twitter" aria-hidden="true"></i></a>
      <a href="#" class="g-plus" title="Join us on Google+"><i class="fa fa-google-plus" aria-hidden="true"></i></a>
      <a href="#" class="dribbble" title="Join us on Dribbble"><i class="fa fa-dribbble" aria-hidden="true"></i></a>
      <a href="#" class="vimeo" title="Join us on Vimeo"><i class="fa fa-vimeo" aria-hidden="true"></i></a>
    <a href="#" class="pinterest" title="Join us on Pinterest"><i class="fa fa-pinterest-p" aria-hidden="true"></i></a>
      <a href="#" class="insta" title="Join us on Instagram"><i class="fa fa-instagram" aria-hidden="true"></i></a>
      <a href="#" class="in" title="Join us on Linked In"><i class="fa fa-linkedin" aria-hidden="true"></i></a>
    </div>
  </div>
    
   <div class="effect phebe">
    <h2>Phebe</h2>
    <div class="buttons">
      <a href="#" class="fb" title="Join us on Facebook"><i class="fa fa-facebook" aria-hidden="true"></i></a>
      <a href="#" class="tw" title="Join us on Twitter"><i class="fa fa-twitter" aria-hidden="true"></i></a>
      <a href="#" class="g-plus" title="Join us on Google+"><i class="fa fa-google-plus" aria-hidden="true"></i></a>
      <a href="#" class="dribbble" title="Join us on Dribbble"><i class="fa fa-dribbble" aria-hidden="true"></i></a>
      <a href="#" class="vimeo" title="Join us on Vimeo"><i class="fa fa-vimeo" aria-hidden="true"></i></a>
    <a href="#" class="pinterest" title="Join us on Pinterest"><i class="fa fa-pinterest-p" aria-hidden="true"></i></a>
      <a href="#" class="insta" title="Join us on Instagram"><i class="fa fa-instagram" aria-hidden="true"></i></a>
      <a href="#" class="in" title="Join us on Linked In"><i class="fa fa-linkedin" aria-hidden="true"></i></a>
    </div>
  </div>
    
  </div>
</div>
            
          
!
            
              //variables
$button-dimensions: 60px;
$title-offset: 10px;
$title-width: 190px;
$title-font-size: 18px;
$buttons-offset: 20px;

$basic-dark-color: #212121;
$basic-light-color: #fff;
$accent-font-color: #CC5803;
$unactive-btn-bg: #8b8b8b;
$fb-color: #3b5998;
$tw-color: #00aced;
$g-plus: #dd4b39;
$dribbble: #ea4c89;
$pinterest: #cb2027;
$insta: #bc2a8d;
$in: #007bb6;
$vimeo: #1ab7ea;
$social-icon-font-size: 25px;

//transitions mixin
@mixin transition-mix($property: all, $duration: 0.2s, $timing: linear, $delay: 0s) {
  transition-property: $property;
  transition-duration: $duration;
  transition-timing-function: $timing;
  transition-delay: $delay;
}

//position absolute mixin
@mixin position-absolute ($top: null, $left: null, $right: null, $bottom: null) {
  position: absolute;
  top: $top;
  left: $left;
  right: $right;
  bottom: $bottom;
}

/*common styles !!!YOU DON'T NEED THEM */
body {
  font: {
      family: 'Roboto', sans-serif;
      weight: 400;
      size: 17px;
    }
}

.container {
  width: 100%;
  margin: 60px auto 0px auto;
  text-align: center;
  
  h1 {
    font: {
      family: 'Roboto', sans-serif;
      weight: 900;
      size: 30px;
    }
    text-transform: uppercase;
    color: $basic-dark-color;
    letter-spacing: 3px;
    
    span {
      display: inline-block;
      
      &:before,
      &:after {
        content: "";
        display: block;
        width: 34px;
        height: 2px;
        background-color: $basic-dark-color;
        margin: 0px 0px 0px 2px;
      }
    }
  }
  
  .link {
    display: flex;
    justify-content: space-around;
    width: 800px;
    margin: 30px auto 0;
    
    a {
      @include transition-mix;
      
      display: flex;
      align-items: center;
      flex-shrink: 0;
      color: #1f1f1f;
      font: {
        size: 20px;
      }
      text-decoration: none;
      
      &:hover {
        color: $accent-font-color;
      }

      i {
        color: $accent-font-color;
        margin-right: 5px;
        font-size: 30px;
      }
    }
  }
}

.effects {
  margin-top: 50px;
}

.effect {
  width: 100%;
  padding: 50px 0px 70px 0px;
  background-color: $basic-dark-color;
  
  h2 {
    color: $basic-light-color;
    font: {
      family: 'Playfair Display', serif;
      weight: 400;
      size: 25px;
    }
    letter-spacing: 3px;
  }
  
  &:nth-child(2n) {
    background-color: $basic-light-color;
    
    h2 {
      color: $basic-dark-color;
    }
  }
  
   .buttons {
    margin-top: 50px;
    display: flex;
    justify-content: center;
  }
}

/*common link styles !!!YOU NEED THEM*/
.effect {
  
  .buttons {
    display: flex;
    justify-content: center;
    visibility: hidden;
  }
  
  a {
    text-decoration: none !important;
    color: $basic-light-color;
    width: $button-dimensions;
    height:$button-dimensions;
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: $buttons-offset;
    font-size: $social-icon-font-size;
    position: relative;
    visibility: visible;
    
    i {
      position: relative;
      z-index: 3;
    }
    
    &:after {
      content: attr(title);
      visibility: hidden;
      
      width: $title-width;
      height: 100%;
      display: flex;
      align-items: center;
      
      z-index: 400;
      
      font: {
        size: $title-font-size;
      }
    }
    
    &:nth-child(-n+4) {
      
      &:after {
        @include position-absolute($top: 0, $left: $button-dimensions + $title-offset);
        text-align: left;
        justify-content: flex-start;
      }
    }
    
    &:nth-child(n+5) {
      
      &:after {
        @include position-absolute($top: 0, $right: $button-dimensions + $title-offset);
        justify-content: flex-end;
      }
    }
     
    &.fb {
      background-color: $fb-color;
    }
    
    &.tw {
      background-color: $tw-color;
    }
    
    &.g-plus {
      background-color: $g-plus;
    }
    
    &.dribbble {
      background-color: $dribbble;
    }
    
    &.pinterest {
      background-color: $pinterest;
    }
    
    &.insta {
      background-color: $insta;
    }
    
    &.in {
      background-color: $in;
    }
    
    &.vimeo {
      background-color: $vimeo;
    }
  }
}

/* aemilius effect */
.effect.aemilius {
  
  a {
    @include transition-mix;
  }
  
  .buttons:hover {
    
    a:not(:hover) {
      background-color: $unactive-btn-bg;
      opacity: 0.2;
    }
    
    a:hover {
      opacity: 1;
    }
  }
}

/* mutius effect */
.effect.mutius {
  
  a {
    @include transition-mix($timing: linear);
    transform-origin: center bottom;
  }
  
  .buttons:hover {
    
    a:not(:hover) {
      transform: scale(0.7);
    }
    
    a:hover {
      transform: scale(1) translateY(-10px);
    }
  }
}

/* orleans effect */
.effect.orleans {
  
  a {
    @include transition-mix;
    
    &:after {
      opacity: 0;
    }
    
    &:hover {
      
      &:after {
        @include transition-mix;
        visibility: visible;
        opacity: 1;
      }
    }
  }
  
  .buttons:hover {
    
    a:not(:hover) {
      opacity: 0.15;
      
      i {
        visibility: hidden;
        opacity: 0;
      }
    }
    
  }
}

/* cinna effect */
.effect.cinna {
  
  a {
    @include transition-mix;
    
    &:after {
      @include position-absolute($top: 0, $left: $button-dimensions);
      text-align: left;
      justify-content: flex-start;
      opacity: 0;
    }
    
    &:hover {
      
      &:after {
        @include transition-mix($delay: 0.2s);
        visibility: visible;
        opacity: 1;
      }
    }
  }
  
  .buttons:hover {
    
    a:not(:hover) {
      transform: scale(0.7);
    }
    
    a:hover {
      padding-right: $title-width;
      border-radius: 5px;
    }
  }
}

/* phebe effect */
.effect.phebe {
  
  a {
    @include transition-mix;
  }
  
  .buttons:hover {
    
    a:not(:hover) {
      transform: scale(0.6) rotate(360deg);
      transform-origin: center center;
    }
    
    a:hover {
      text-shadow: 1px 1px 1px rgba(0,0,0,0.2), 
                   2px 2px 1px rgba(0,0,0,0.2),
                  3px 3px 1px rgba(0,0,0,0.2),
                  4px 4px 1px rgba(0,0,0,0.2),
                  5px 5px 1px rgba(0,0,0,0.2),
                  6px 6px 1px rgba(0,0,0,0.2),
                  7px 7px 1px rgba(0,0,0,0.2),
                  8px 8px 1px rgba(0,0,0,0.2);
    }
  }
}
            
          
!
999px
Loading ..................

Console