Pen Settings

HTML

CSS

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

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

Behavior

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.

HTML

              
                <a href="https://google.com/" target="_blank">Link to<br />Google</a>
              
            
!

CSS

              
                @import compass

$red: rgba(255,72,81,1)
  
a
  @include transition( all 0.15s cubic-bezier(.46,.01,.14,1.35))
  white-space: nowrap
  font-family: "Lato"
  font-weight: 900
  font-size: 32px
  letter-spacing: 2px
  text-transform: uppercase
  text-decoration: none
  color: $red
  position: absolute
  top: 50%
  left: 50%
  @include translate( -50% , -50% )
    
  &:after
    content: attr(href)
    @include transition( all 0s linear)
    overflow: hidden
    background-color: $red
    text-transform: lowercase
    position: absolute
    font-size: 10px
    letter-spacing: 0
    font-weight: 500
    bottom: -8px
    left: 0
    width: 100%
    display: inline-block
    @include translate( -15px , 100% )
    padding: 0 15px
    max-height: 0
    z-index: -1
  
  &:before
    content: ""
    @include backface-visibility( hidden )
    @include transition( all 0.15s cubic-bezier(.46,.01,.14,1.35))
    position: absolute
    width: 100% 
    height: 2px
    background-color: $red
    bottom: -5px
    z-index: -2
    
  &:hover
    color: white
      
    &:before
      padding: 10px 15px
      margin-left: -15px
      bottom: -10px
      height: 100%
      
    &:after
      @include transition( all 0.25s cubic-bezier(.46,.01,.14,1.35) 0.3s )
      @include translate( -15px , 50% )
      padding: 10px 15px
      max-height: 30px
      opacity: 1
              
            
!

JS

              
                
              
            
!
999px

Console