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.


    Hi !
    Hover me !


                @import compass

  background: rgb(255,255,255)
  border-radius: 100%
  cursor: pointer
  position: relative
  margin: 0 auto
  width: 15em
  height: 15em
  overflow: hidden
  transform: translateZ(0)
  margin-top: 3em
  h1, h2
    font-family: 'Lato', sans-serif
    font-weight: 900
    font-size: 1.6em
    line-height: 8.2em
    text-align: center
    text-transform: uppercase
    -webkit-font-smoothing: antialiased
    user-select: none
    color: rgba(189, 185, 199,0)
    transition: color 2.1s ease-in-out
    position: absolute
    top: -0.2em
    left: 1.4em
    color: rgba(255, 255, 255, 1)
    transition: color 1.5s ease-in-out
  &:before, &:after
    border-radius: 100%
    content: ""
    position: absolute
    top: 0
    left: 0
    width: inherit
    height: inherit
    box-shadow: inset 10.6em 0 0 rgba(30, 140, 209, 0.2), inset 0 10.6em 0 rgba(30, 140, 209, 0.2), inset -10.6em 0 0 rgba(30, 140, 209, 0.2), inset 0 -10.6em 0 rgba(30, 140, 209, 0.2)
    user-select: none
    transition: box-shadow 0.75s
    transform: rotate(45deg)
  &:hover:before, &:hover:after
    box-shadow: inset 0.86em 0 0 rgba(255, 0, 0, 0.5), inset 0 0.86em 0 rgba(252, 150, 0, 0.5), inset -0.86em 0 0 rgba(0, 255, 0, 0.5), inset 0 -0.86em 0 rgba(0, 150, 255, 0.5)
  &:hover > h1
    color: rgba(185, 185, 185,1)
  &:hover > h2
    color: rgba(255, 255, 255,0)
    transition: color 0.5s ease-in-out



This is a fork of Marco Barría's experiment. We use Pseudo-Elements Animations & Transitions on :before and :after to do that.

Arrangement for HAML and SASS.

1st modification : add a call to hover text.

You can see the original demonstration here :