Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource


Babel includes JSX processing.

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


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Auto Save

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.


                <div class="container">
  <div class="row mainContent">
    <div class="col-md-6 col-md-offset-3 instructions well text-right">
      <p>Click the button in the bottom right-corner for testing.</p>
    <div class="col-md-6 col-md-offset-3 col-xs-8 col-xs-md-2">
      <div class="share-icon google-plus">
        <i class="fa fa-google-plus fa-lg" aria-hidden="true"></i>
      <div class="share-icon twitter">
        <i class="fa fa-twitter fa-lg" aria-hidden="true"></i>
      <div class="share-icon facebook">
        <i class="fa fa-facebook fa-lg" aria-hidden="true"></i>
      <div class="share-icon linkedin">
        <i class="fa fa-linkedin fa-lg" aria-hidden="true"></i>
      <div class="share-icon trigger">        
        <i class="fa fa-share fa-lg" id= "fab" aria-hidden="true"></i>


  font-family: 'Product Sans', Arial, sans-serif;
  font-size: 16px;
  background-color: #F6F6F6;
  margin-top: 75px;

  background-color: #EBEEF0;
  font-size: 1.2em;
  color: #5E7179;

  width: 50px;
  height: 50px;
  border-radius: 50%;
  line-height: 50px;
  text-align: center;
  color: #FFF;
  position: fixed;
  right: 2em;
  bottom: 2em;
  cursor: pointer;

  width: 51px;
  height: 51px;
  background-color: #2196F3;
  box-shadow: 0 6px 6px 0 #D4D4D4;

  background-color: #DF4D34;

  background-color: #55ACEE;

  background-color: #3B579D;

  background-color: #0077B5;

  font-size: 50px;
   -webkit-transform: rotate(45deg);
   -moz-transform: rotate(45deg);
   -o-transform: rotate(45deg);
   -ms-transform: rotate(45deg);
   transform: rotate(45deg);
  font-family: 'Roboto', sans-serif;



  var triggered = false;
  var share_btns_class = '.google-plus, .twitter, .facebook, .linkedin';
    if(triggered == false){
      $(this).html('<span class="exit">+</span>').css('transform','rotate(45deg)');
      //First, bring up Google+
     $('.google-plus').animate({bottom: '6em'}, 150);
      //Then Twitter
     $('.twitter').animate({bottom: '10em'}, 150);
      //Then Facebook
     $('.facebook').animate({bottom: '14em'}, 150);
      //And finally, Linkedin
     $('.linkedin').animate({bottom: '18em'}, 150);
      triggered = true;
      $(this).html('<i class="fa fa-share fa-lg" id= "fab" aria-hidden="true"></i>').css('transform','rotate(0deg)');
      //Hide All buttons
     $(share_btns_class).animate({bottom: '2em'}, 150);
      triggered = false;