Pen Settings

HTML

CSS

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

JavaScript

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

Packages

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.

Behavior

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.

HTML

              
                <div class="container">
  <div class="row">
    <div class="col-md-12">
      <div class="page-title">
        <h1> Social Media Icons in CSS</h1>
        <small style="font-size:125%"> Work in progress. Github repository located <a href="https://github.com/h3xc0ntr0l/Social-Media-CSS-Icons">here.</a> Original work by <a href="mailto:michael@michaelfward.com">Michael Ward.</a></small>
      </div>
    </div>
  </div>
  <div class="row">
    <div class="col-md-12">
      <div class="page-title">
        <h2> Base CSS </h2>
      </div>
    </div>
  </div>
  <div class="row smr example">
    <div class="col-md-2">
      <h1> Vertical, no margin (vanilla) </h1>
    </div>
    <div class="col-md-10">
      <div class="facebook">
        <div class="fb-ic"></div>
      </div>
      <div class="twitter">
        <div class="twitter-inner">
        </div>
      </div>
      <div class="github">
        <div class="github-inner"></div>
      </div>
      <div class="g-plus">
        <div class="gplus-inner"></div>
      </div>
      <div class="codepen">
        <div class="codepen-inner"></div>
      </div>
    </div>
  </div>
  <div class="row smr example">
    <div class="col-md-2">
      <h1> Horizontal, no margin (vanilla) </h1>
    </div>
    <div class="col-md-10 horizontal">
      <div class="facebook">
        <div class="fb-ic"></div>
      </div>
      <div class="twitter">
        <div class="twitter-inner">
        </div>
      </div>
      <div class="github">
        <div class="github-inner"></div>
      </div>
      <div class="g-plus">
        <div class="gplus-inner"></div>
      </div>
      <div class="codepen">
        <div class="codepen-inner"></div>
      </div>
    </div>
  </div>
  <div class="row smr example">
    <div class="col-md-2">
      <h1> Circular </h1>
    </div>
    <div class="col-md-10">
      <div class="facebook circular-icon">
        <div class="fb-ic"></div>
      </div>
      <div class="twitter circular-icon">
        <div class="twitter-inner">
        </div>
      </div>
      <div class="github circular-icon">
        <div class="github-inner"></div>
      </div>
      <div class="g-plus circular-icon">
        <div class="gplus-inner"></div>
      </div>
      <div class="codepen circular-icon">
        <div class="codepen-inner"></div>
      </div>
    </div>
  </div>
  <div class="row smr example">
    <div class="col-md-2">
      <h1> Colored Background </h1>
    </div>
    <div class="col-md-10">
      <div class="facebook colored facebook-fill">
        <div class="fb-ic"></div>
      </div>
      <div class="twitter colored twitter-fill">
        <div class="twitter-inner">
        </div>
      </div>
      <div class="github colored github-fill">
        <div class="github-inner"></div>
      </div>
      <div class="g-plus colored gplus-fill">
        <div class="gplus-inner"></div>
      </div>
      <div class="codepen colored codepen-fill">
        <div class="codepen-inner"></div>
      </div>
    </div>
  </div>
  <div class="row">
    <div class="col-md-12">
      <div class="page-title">
        <h2> Animations.</h2><small> Note that in this pen, "animation-iteration-count" is set to infinite, and in the library, it is not. </small>
      </div>
    </div>
  </div>
  <div class="row smr example">
    <div class="col-md-2">
      <h1>Roll Right</h1>
    </div>
    <div class="col-md-10">
      <div class="facebook roll-right">
        <div class="fb-ic"></div>
      </div>
      <div class="twitter roll-right">
        <div class="twitter-inner">
        </div>
      </div>
      <div class="github roll-right">
        <div class="github-inner"></div>
      </div>
      <div class="g-plus roll-right">
        <div class="gplus-inner"></div>
      </div>
      <div class="codepen roll-right">
        <div class="codepen-inner"></div>
      </div>
    </div>
  </div>
</div>
              
            
!

CSS

              
                .smr{
  overflow:hidden;
  z-index:10;
}

.example:nth-child(even){
  background:#501212;
}

.example:nth-child(odd){
  background: #2B0909;
}

.smr .col-md-10 {
  margin-top:1em;
  margin-bottom:1em;
  padding-top:1em;
  padding-bottom:1em;
  margin-left:1em;
}


.smr .col-md-10 *{
  float:left;
}

.horizontal *{
  clear:both;
}



.container{
  color:#CE9A00;
  position:relative;
}

html, body{
  background:#6D513A;  
}

.circular-icon{
  border-radius: 50%;
}


.colored:hover{
  background:transparent !important;
}


.g-plus{
  font-family: 'Gentium Basic', serif;
  color:white;
  width: 5rem;
  text-align:center;
  height:5rem;
  position:relative;
  transition: 1s all ease;
}

.gplus-fill{
  background:#D81010;
}

.gplus-inner{
  transition: 1s all ease;
  font-size:200%;
  text-align:center;
  height:5rem;
  width:100%;
  transform: translate(25%, 0);
}

.gplus-inner:after{
  transition:inherit;
  position:absolute;
  padding-right:50%;
  top:50%;
  left:50%;
  transform: translate(-50%, -50%);
  content:"g+";
}

.g-plus:hover{
  background:#D81010;
}

.g-plus:hover .gplus-inner:after{
  animation-name: bounce;
  animation-duration:1.5s;
  animation-timing-function:ease;
}



@keyframes bounce{
  0%{top:initial;}
  1%{top:0%;}
  3%{top:10%;}
  7%{top:19%;}
  10%{top:38%;}
  20%{top:50%;}
  30%{top:40%;}
  40%{top:50%;}
  50%{top:42%;}
  60%{top:50%;}
  70%{top:44%;}
  80%{top:50%;}
  90%{top:46%;}
  100%{top:50%;}
}


@keyframes roll-right{
  from {
    left:-100%;
    transform: rotate(0deg);
  }
  to{
    left:0;
    transform: rotate(2160deg);
  }
}

.codepen{
  position:relative;
  height:5rem;
  width:5rem;
  transition: 1s all ease;
}

.codepen-fill{
  background:black;
}

.codepen-inner{
  height:100%;
  width:100%;
  transition:inherit;
}

.codepen-inner:after{
  content:"";
  position:absolute;
  top:50%;
  left:50%;
  transform: translate(-50%, -50%);
  height:75%;
  width:75%;
background: url(http://i304.photobucket.com/albums/nn192/taterandjoes/codepen-512-black_zpsv9y3362v.png);  background-size:contain;
  background-repeat:no-repeat;
}

.codepen:hover{
  background:black;
}

.codepen:hover .codepen-inner:after{
  animation-name: bounce;
  animation-duration:1.5s;
  animation-timing-function:ease;
}
.facebook{
  position:relative;
  width:5rem;
  height:5rem;
  color:white;
  overflow:hidden;
  transition: all .5s ease;
}

.facebook-fill{
  background: #18189E;
}

.fb-ic{
  transition:inherit;
  color:white;
  position:absolute;
  top:50%;
  left:50%;
  transform: translate(-50%, -50%);
  font-size:400%;
}

.fb-ic:after{
  content:"f";
}

.facebook:hover .fb-ic{
  animation-name: bounce;
  animation-duration:1.5s;
  animation-timing-function:ease;
}

.facebook:hover{
  background: #18189E;
}
.github{
  position:relative;
  height:5rem;
  width:5rem;   
/*  overflow:hidden;*/
  transition: 1s ease;
  filter:blur(50%);
}

.github-fill{
  background: #000;
}

.github:hover{
  background:black;
}

.github-inner{
  position:absolute;
  top:50%;
  left:50%;
  transform: translate(-50%, -50%);
  content:"";
  height:70%;
  width:70%;
  background: url(http://i304.photobucket.com/albums/nn192/taterandjoes/ghub_zpsijhkuxzi.png);
  background-repeat:no-repeat; 
  background-size:contain;
}

.github:hover .github-inner{
  animation-name: bounce;
  animation-duration:1.5s;
  animation-timing-function: ease;
}


.twitter{
  position:relative;
  height:5rem;
  width:5rem;
  transition: all 1s ease;
}

.twitter-fill{
  background-color: #3398FF; 
}

.twitter-inner{
  position:absolute;
  transition: inherit;
  height:50%;
  width:50%;
  top:50%;
  left:50%;
  transform: translate(-50%, -50%);
background-image: url(http://i304.photobucket.com/albums/nn192/taterandjoes/Twitter-logo-bird_logo_2012_zpsofp9kkeu.png);  background-size:contain;
  background-repeat:no-repeat;
}

.roll-right{
  animation-name: roll-right;
  animation-delay:1s;
  animation-duration: 1.5s;
  animation-timing-function: ease;
  animation-iteration-count:infinite;
  overflow:hidden;
}

.twitter:hover{
  background-color: #3398FF;
}

.twitter:hover .twitter-inner{
  animation-name: bounce;
  animation-duration: 1.5s;
}


              
            
!

JS

              
                
              
            
!
999px

Console