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


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.


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.


                 <div class="wrapper"><div class="button pinterest">
  <div class="cover"><i class="fa fa-pinterest"></i></div>
  <div class="widget">
  	<a data-pin-do="buttonFollow" href="">Follow Pinterest</a>
<!-- Please call pinit.js only once per page -->
<script type="text/javascript" async src="//"></script> 
<div class="wrapper">
<div class="button twitter">
  <div class="cover"><i class="fa fa-twitter"></i></div>
  <div class="widget">
  	<a href="" class="twitter-follow-button" data-show-count="false" data-size="small">Follow @CodePen</a>
    <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);;js.src="//";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
<h1>Social Buttons Concept</h1>


                * { box-sizing: border-box; }
body { 
  height: 100%; 
  margin: 0;
body {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-image: linear-gradient(top, #FFFFFF 0%, #D5D9EF 100%);
.cover {
  height: 40px;
  border-radius: 3px; 
  text-align: center;
  transition: opacity .5s ease-in-out;
  opacity: 1;
.twitter .cover {
  background: linear-gradient(top,#2EC8FA,#29B5E2);
.pinterest .cover {
  background: linear-gradient(top,#E7364C,#D4242B);
.pinterest .widget > a {
  margin: 0 3px 0 0!important;
.cover i {
  color: #fff;
  font-size: 25px;
  margin-top: 7px;
  text-shadow: rgba(0,0,0,0.2) 0px 1px 0px;
.button {
  height: 40px;
  border-radius: 3px;
  transform-origin: center center -15px;
  transform-style: preserve-3d;
  transition: all .5s ease-in-out;
	display: block; 
  margin: 20px;
  cursor: pointer;
.wrapper { perspective: 100px; }
.button:hover { transform: rotateX(90deg); }
.button:hover .cover { opacity: 1; }
.widget {
  height: 40px;
  background: #f0f2f5;
  border-radius: 3px;
  transform-origin: center top;
  transform: rotateX(-90deg);
  padding: 9px;
  border:1px solid #ddd;
  border-bottom: 1px solid #ccc
h1 {
	font: 20px sans-serif; 
  font-weight: 300; 
  margin-top: 70px; 
  color: #999;