Pen Settings

↑ Insert the most common viewport meta tag

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource
via CSS Lint

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource
via JS Hint

Code Indentation


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Want a Run Button?

If active, the preview will update automatically when you change code.


              <div class="clip">
  <div class="grad"></div>

<button><a href="#">Hover Me</a><span></span></button>


              @import "nib"

  padding: 30px
  width: 400px
  height: 300px
  overflow: hidden
  margin-bottom: 30px
  position: relative
  width: 400px
  height: 900px
  background: linear-gradient(top, yellow, blue)
  animation: infinite_gradient 4s linear infinite

@keyframes infinite_gradient
  0%, 100%
    transform: translateY(-300px)
    transform: translateY(0)
  border: 0
  width: 200px
  height: 40px
  overflow: hidden
  display: block
  padding: 0
  cursor: pointer
  height: 120px
  display: block
  background: linear-gradient(top, yellow, blue)
  transform: translateY(-80px)
    animation: button_gradient 400ms linear forwards
  position: relative
  z-index: 11
  line-height: 40px
  text-decoration: none
  color: #fff
@keyframes button_gradient
    transform: translateY(-40px)


Loading ..................