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.

+ add another resource

Looking for quick-add? Try the external resource search, it's quicker and gives you access to the most recent version of thousands of libraries. ☝️

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

Looking for quick-add? Try the external resource search, it's quicker and gives you access to the most recent version of thousands of libraries. ☝️

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.

            
              <body>
  <div class="element">
    <div class="group facebook-share">
      <div class="count facebook-count"></div>
      <i class="fa fa-caret-down"></i>
      <button class="fb"><i class="fa fa-facebook"></i> facebook</button>
    </div>
    <div class="group gplus-share">
      <div class="count gplus-count"></div>
      <i class="fa fa-caret-down"></i>
      <button class="gp"><i class="fa fa-google-plus"></i> google-plus</button>
    </div>
    <div class="group linkedin-share">
      <div class="count linkedin-count"></div>
      <i class="fa fa-caret-down"></i>
      <button class="linkedin"><i class="fa fa-linkedin"></i> linkedin</button>
    </div>
    <div class="group twitter-share">
      <div class="count twitter-count"></div>
      <i class="fa fa-caret-down"></i>
      <button class="twitter"><i class="fa fa-twitter"></i> twitter</button>
    </div>
    <div class="group pinterest-share">
      <div class="count pinterest-count"></div>
      <i class="fa fa-caret-down"></i>
      <button class="pinterest"><i class="fa fa-pinterest"></i> pinterest</button>
    </div>
  </div>
</body>
            
          
!
            
              @import url(https://fonts.googleapis.com/css?family=Roboto:400,300,100);

body{
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  font-family: 'Roboto', sans-serif;
  overflow:auto;
  background: -webkit-linear-gradient(90deg, #232526 10%, #414345 90%); /* Chrome 10+, Saf5.1+ */
  background:    -moz-linear-gradient(90deg, #232526 10%, #414345 90%); /* FF3.6+ */
  background:     -ms-linear-gradient(90deg, #232526 10%, #414345 90%); /* IE10 */
  background:      -o-linear-gradient(90deg, #232526 10%, #414345 90%); /* Opera 11.10+ */
  background:         linear-gradient(90deg, #232526 10%, #414345 90%); /* W3C */
}


.element{
  color: #fff;
  /* display: table; */
  /* margin: 100px auto; */
  position: absolute;
  left: 50%;
  margin-left: -400px;
  top: 50%;
  margin-top: -90px;
}

.element .group{
  display: inline-block;
  position: relative;
  cursor:pointer;
  margin: 0 5px;
}

.element button{
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 2px;
  cursor: inherit;
  border:0;
  color:#ffffff;
  width: 150px;
  outline: 0;
  font-family: inherit;
  -webkit-transition: background-color 0.2s ease-in-out;
  -moz-transition: background-color 0.2s ease-in-out;
  -o-transition: background-color 0.2s ease-in-out;
  transition: background-color 0.2s ease-in-out;
}

.fb{
  background-color: #306199;
}

.fb:hover{
  background-color: #244872;
}



.count{
  background-color: #fff;
  color: #565656;
  border-radius: 2px;
  margin-bottom: 10px;
  text-align: center;
  padding: 10px;
  height: 40px;
  box-sizing:border-box;
}

.fa-caret-down{
  position: absolute;
  margin-top: -22px;
  text-align: center;
  right: 10px;
  font-size: 28px;
}

.gp{
  background-color: #e93f2e;
}

.gp:hover{
  background-color: #ce2616;
}

.linkedin{
  background-color: #007bb6;
}

.linkedin:hover{
  background-color: #005983;
}

.twitter{
  background-color: #26c4f1;
}

.twitter:hover{
  background-color: #0eaad6;
}

.pinterest{
  background-color: #b81621;
}

.pinterest:hover{
  background-color: #8a1119;
}
            
          
!
            
              $('.element').socialShare({
      url:'codepen.io',
      image:'https://download.unsplash.com/photo-1426200830301-372615e4ac54',
      twitterVia:'ritz078',
      twitterHashTags:'javascript,jquery'
    });
            
          
!
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.
Loading ..................

Console