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 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

Packages

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.

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

              
                %button Button
              
            
!

CSS

              
                $hover: #FC5185
$border-width: 4px

html
  -moz-osx-font-smoothing: grayscale
  -webkit-font-smoothing: antialiased
  text-rendering: optimizelegibility

html, body
  height: 100%

body
  background: linear-gradient(to left bottom, #3FC1C9, #364F6B)
  display: flex
  align-items: center
  justify-content: center
  font-family: 'Montserrat', sans-serif

button
  display: inline-block
  background: none
  border: none
  // backface-visibility: hidden
  padding: 1em 2em
  font-size: 1.5em
  font-weight: 600
  font-family: inherit
  letter-spacing: .05em
  text-transform: uppercase
  text-decoration: none
  color: #F5F5F5
  transition: color .2s
  box-shadow: inset 0 0 0 $border-width #F5F5F5, 0 0 1px 1px rgba(black,.25)
  text-shadow: 0 0 2px rgba(black,.5)
  position: relative
  overflow: hidden
  transform: translateZ(0)
  cursor: pointer!important
  
  &:before, &:after
    content: ''
    position: absolute
    top: 0
    left: 0
    right: 0
    bottom: 0
    border: $border-width solid transparent
    will-change: transform
    transition: transform .3s ease
    pointer-events: none
    transform: translateZ(0)
  
  &:before
    border-color: $hover transparent
    transform: skew(-81deg,0)
  
  &:after
    border-color: transparent $hover
    transform: skew(0,40deg)
    transition: transform .4s
  
  &:hover
    color: $hover
    &:before, &:after
      transform: skew(0,0)
              
            
!

JS

              
                
              
            
!
999px

Console