Pen Settings

HTML

CSS

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

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

Behavior

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.

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

              
                <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.1.0/css/font-awesome.min.css">



<section class="social-buttons"> 
<!-- Facebook -->
<div class="slide-social">
<div class="button">
<iframe src="https://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fgoogle.com%2F&amp;send=false&amp;layout=button_count&amp;width=90&amp;show_faces=false&amp;font&amp;colorscheme=light&amp;action=like&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:90px; height:21px;" allowTransparency="true"></iframe>
</div>
<div class="facebook icon"> <i class="fa fa-facebook"></i> </div>
<div class="facebook slide">
<p>like</p>
</div>
</div>
</div>


<section class="social-buttons"> 
<!-- Twitter -->
<div class="slide-social">
<div class="button"> <a href="https://twitter.com/share" class="twitter-share-button" data-url="https://google.com" data-text="Google.com" data-via="cssscript">tweet</a> </div>
<div class="twitter icon"> <i class="fa fa-twitter"></i> </div>
<div class="twitter slide">
<p>tweet</p>
</div>
</div>
</div>

<!-- Twitter JS --> 
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>

<section class="social-buttons"> 
<!-- Google+ -->
<div class="slide-social">
<div class="button">
<div class="g-plusone" data-size="medium"></div>
</div>
<div class="google-plus icon"> <i class="fa fa-google-plus"></i> </div>
<div class="google-plus slide">
<p>+1</p>
</div>
</div>
</section>

<!-- Google+ JS --> 
<script>
(function() {
 var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
 po.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script>

<section class="social-buttons"> 
<!-- Linkedin -->
<div class="slide-social">
<div class="button"> 
<script src="https://platform.linkedin.com/in.js" type="text/javascript">lang: en_US</script> 
<script type="IN/Share" data-url="https://google.com/" data-counter="right"></script> 
</div>
<div class="linkedin icon"> <i class="fa fa-linkedin"></i> </div>
<div class="linkedin slide">
<p>share</p>
</div>
</div>
</section>




























              
            
!

CSS

              
                /*! Slide Social Buttons - v1.0 - 2013-7-10
* Slide Social Buttons are a fun way to display your social media buttons
* https://github.com/christophery/slide-social-buttons
* by Christopher Yee */

.slide-social{
    display: inline-block;
    overflow: hidden;
    margin: 0 10px 10px 0;
    width: 150px;
    height: 48px;
    background: #F1F1F1;
}

.slide-social .button{
    position: absolute;
    margin: 15px 0 0 55px;
}

.slide-social a{
    display: none; /* hide flash of unstyled tweet button */
}

.icon{
    float: left;
    padding-top: 15px;
    width: 25%;
    height: 100%;
    text-align: center;
}

.icon i{
    color: #FFF;
    font-size: 1.2em;
}

.slide{
    position: relative;
    float: left;
    width: 75%;
    height: 100%;
}

.slide p{
    position: relative;
    top: 15px;
    margin: 0;
    border-left: 1px solid rgb(255,255,255); /* IE < 9 Fallback Colour */
    border-left: 1px solid rgba(255,255,255,0.3);
    color: #FFF;
    text-align: center;
    font-weight: 600;
}

/* Brand Colours */

.facebook{
    background: #3b5998;
}

.twitter{
    background: #00acee;
}

.google-plus{
    background: #db4a39;
}

.linkedin{
    background: #0e76a8;
}

.pinterest{
    background: #c8232c;
}

/* Slide Animation */

.slide-social:hover .slide{
    -webkit-transform: translate(101%, 0);
    -moz-transform: translate(101%, 0);
    -ms-transform: translate(101%, 0);
    -o-transform: translate(101%, 0);
    transform: translate(101%, 0);
}

.no-cssanimations .slide{
    display: none; /* hide in IE 8-9 */
}

.touch .slide{
    display: none; /* hide on touch devices */
}

/* Transition */

.slide{
    -webkit-transition: all 200ms ease-in-out;
    -moz-transition: all 200ms ease-in-out;
    -o-transition: all 200ms ease-in-out;
    transition: all 200ms ease-in-out;
}

/* Example Media Queries */

@media only screen and (max-width : 30em) { /* 480px/16px = 30em */

    .slide-social{
        width: 100%;
    }

    .slide-social .button{
        position: absolute;
        margin-left: 50%;
    }
}
              
            
!

JS

              
                
              
            
!
999px

Console