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 CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

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="buttons">
  <a href="#" class="btn facebook">
    <span class="label">facebook</span>
    <span class="icon fa fa-facebook"></span>
  </a>
  
  <a href="#" class="btn google-plus">
    <span class="label">Google Plus</span>
    <span class="icon fa fa-google-plus"></span>
  </a>

  <a href="#" class="btn twitter">
    <span class="label">twitter</span>
    <span class="icon fa fa-twitter"></span>
  </a>

  <a href="#" class="btn github">
    <span class="label">Github</span>
    <span class="icon fa fa-github"></span>
  </a>

  <a href="#" class="btn linkedin">
    <span class="label">Linkedin</span>
    <span class="icon fa fa-linkedin"></span>
  </a>
</div>
            
          
!
            
              /*variables*/
@base-grey: #333;

@facebook: #3b5998;
@twitter: #55acee;
@g-plus: #dd4b39;
@l-in: #0976b4;
@github: #999;

body {
  margin: 0;
  background-color: @base-grey;
  padding-top: 6rem;
  font-family: roboto;
}

a {
  text-decoration: none;
}

*,
*:after,
*:before {
  box-sizing: border-box;
}

.buttons {
  text-align: center;
}

// Button frame
.btn {
  padding: .875rem 1.2rem;
  background-color: transparent;
  border: 1px solid transparent;
  display: inline-block;
  outline: 0;
  color: white;
  cursor: pointer;
  font-size: 1rem;
  position: relative;
  text-align: center;
  overflow: hidden;
  border-radius: 6px;
  -webkit-box-shadow: rgba(0,0,0,.4);
  margin: 0 auto;
  float: none;
}
    // Assign brand colors
    .btn.twitter {
      background-color: @twitter;
      border-color: @twitter;
    }

    .btn.google-plus {
      background-color: @g-plus;
      border-color: @g-plus;
    }

    .btn.linkedin {
      background-color: @l-in;
      border-color: @l-in;
    }

    .btn.github {
      background-color: @github;
      border-color: @github;
    }

    .btn.facebook {
      background-color: @facebook;
      border-color: @facebook;
    }

button span,
span {
  top: 0px;
  position: relative;
  transition: 350ms cubic-bezier(0.175, 0.885, 0.32, 1.275) all;
}

    button:hover span.label,
    a.btn:hover span.label {
      top: -40px;
      transition: 350ms cubic-bezier(0.175, 0.885, 0.32, 1.275) all;
    }

// Override inline-block from original
.fa {
  position: absolute;
}


.fa.fa-google-plus:before,
.fa.fa-twitter:before,
.fa.fa-linkedin:before,
.fa.fa-github:before,
.fa.fa-facebook:before {
  top: 100px;
  left: -50%;
  text-align: center;
  position: relative;
  transition: 350ms cubic-bezier(0.175, 0.885, 0.32, 1.275) all;
}

button:hover .fa.fa-google-plus:before,
button:hover .fa.fa-twitter:before,
a.btn:hover .fa.fa-google-plus:before, 
a.btn:hover .fa.fa-twitter:before,
a.btn:hover .fa.fa-linkedin:before,
a.btn:hover .fa.fa-github:before,
a.btn:hover .fa.fa-facebook:before {
  top: 1rem;
  left: -50%;
  transition: 350ms cubic-bezier(0.175, 0.885, 0.32, 1.275) all;
}
            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console