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

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

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <div id="wrap">
  
  <h1 class="title">Flat Ui Rollover Buttons</h1>
     
    <div class="linkbutton">
    <h2>turqoise</h2>
    <div class="ease turquoise"></div>
    </div>
  
    <div class="linkbutton">
    <h2>green sea</h2>
    <div class="ease greensea"></div>
    </div>
  
    <div class="linkbutton">
    <h2>emerald</h2>
    <div class="ease emerald"></div>
    </div>
  
    <div class="linkbutton">
    <h2>nephritis</h2>
    <div class="ease nephritis"></div>
    </div>
  
    <div class="linkbutton">
    <h2>peter river</h2>
    <div class="ease peterriver"></div>
    </div>
  
    <div class="linkbutton">
    <h2>belize hole</h2>
    <div class="ease belizehole"></div>
    </div>
  
    <div class="linkbutton">
    <h2>amethyst</h2>
    <div class="ease amethyst"></div>
    </div>
  
    <div class="linkbutton">
    <h2>westeria</h2>
    <div class="ease westeria"></div>
    </div>
  
    <div class="linkbutton">
    <h2>wet asphalt</h2>
    <div class="ease wetasphalt"></div>
    </div>
  
    <div class="linkbutton">
    <h2>midnight blue</h2>
    <div class="ease midnightblue"></div>
    </div>
  
    <div class="linkbutton">
    <h2>sunflower</h2>
    <div class="ease sunflower"></div>
    </div>
  
    <div class="linkbutton">
    <h2>orange</h2>
    <div class="ease orange"></div>
    </div>
  
    <div class="linkbutton">
    <h2>carrot</h2>
    <div class="ease carrot"></div>
    </div>
  
    <div class="linkbutton">
    <h2>pumpkin</h2>
    <div class="ease pumpkin"></div>
    </div>
  
    <div class="linkbutton">
    <h2>alizarin</h2>
    <div class="ease alizarin"></div>
    </div>
  
    <div class="linkbutton">
    <h2>pomegranate</h2>
    <div class="ease pomegranate"></div>
    </div>
  
    <div class="linkbutton nohover">
    <h2>clouds</h2>
    <div class="ease clouds"></div>
    </div>
  
    <div class="linkbutton nohover">
    <h2>silver</h2>
    <div class="ease silver"></div>
    </div>
  
    <div class="linkbutton">
    <h2>concrete</h2>
    <div class="ease concrete"></div>
    </div>
  
    <div class="linkbutton">
    <h2>abestos</h2>
    <div class="ease abestos"></div>
    </div>
  
</div>
            
          
!
            
              @import "compass/css3";

* {
margin: 0;
padding: 0;
}

html {
}

body {
  font-family: "Helvetica";
  background: #34495e;
}

#wrap {
  margin: 25px auto;
  width: 770px;
  padding: 10px;
}

.title {
  color: #fff;
  text-align: center;
  margin: 10px;
}

.linkbutton {
  width: 350px;
  height: 100px;
  background: #ecf0f1;
  cursor: pointer;
  
  h2 {
  float: left;
    width: 350px;
    height: 65px;
    text-align: center;
    margin-top: 35px;
    font-weight: 100;
    text-transform: uppercase;
  }
  
  &:hover {
  color: #fff;
  background: none;
  }
  
  -webkit-transition: all 0.6s ease;
  -moz-transition: all 0.6s ease;
  -o-transition: all 0.6s ease;
  transition: all 0.6s ease;
  display: inline-block;
  margin: 10px;
}

.ease {
  width: 0;
  background: #282828;
  height: 100px;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.linkbutton:hover .ease {
width: 100%;
}

.nohover:hover {
color: #000;
}

/* Flat Ui Colors */
.turquoise {background: #1abc9c;}
.greensea {background: #16a085;}
.emerald {background: #2ecc71;}
.nephritis {background: #27ae60;}
.peterriver {background: #3498db;}
.belizehole {background: #2980b9;}
.amethyst {background: #9b59b6;}
.westeria {background: #8e44ad;}
.wetasphalt {background: #34495e;}
.midnightblue {background: #2c3e50;}
.sunflower {background: #f1c40f;}
.orange {background: #f39c12;}
.carrot {background: #e67e22;}
.pumpkin {background: #d35400;}
.alizarin {background: #e74c3c;}
.pomegranate {background: #c0392b;}
.clouds {background: #ecf0f1;}
.silver {background: #bdc3c7;}
.concrete {background: #95a5a6;}
.abestos {background: #7f8c8d;}
            
          
!
            
              /* Ease Effect is thanks to @rexkirby . Check out his pens for neat effects. Colors and Flat UI is property of DesignModo + Flat UI */
            
          
!
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.

Console