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

              
                div(class='wrp')
  a(href='#', class='icon icon-twitter')
    i(class='fa fa-twitter')
  a(href='#', class='icon icon-facebook')
    i(class='fa fa-facebook')
  a(href='#', class='icon icon-instagram')
    i(class='fa fa-instagram')
  a(href='#', class='icon icon-gplus')
    i(class='fa fa-google-plus')
              
            
!

CSS

              
                $twitter-color = #4099ff
$facebook-color = #3b5998
$instagram-color = #3f729b
$gplus-color = #dc4e41

html,
body
  height 100%
  min-height 100%
  margin 0
  padding 0

.wrp
  text-align center
  height 100%
  width 100%
  &::before
    content ''
    display inline-block
    height 100%
    vertical-align middle
.icon
  display inline-block
  font-size 50px
  line-height 90px
  height 90px
  width 90px
  margin-right 20px
  color #4099ff
  border-radius 100%
  position relative
  &::before
    content ''
    position absolute
    top 0
    bottom 0
    left 0
    right 0
    border-radius 100%
    background rgba(0,0,0,0.1)
    z-index -1
  &::after
    content ''
    position absolute
    top 0
    bottom 0
    left 0
    right 0
    margin auto
    vertical-align middle
    width 100%
    height 100%
    transform scale(0)
    background #4099ff
    border-radius 100%
    z-index -1
  &:hover
    animation-name bubble2
    animation-duration .5s
    animation-delay .1s
    animation-fill-mode forwards
    &::after
      animation-name bubble
      animation-duration .5s
      animation-fill-mode forwards

   
.icon-twitter
  color $twitter-color
  &::after
    background $twitter-color
    
.icon-facebook
  color $facebook-color
  &::after
    background $facebook-color
    
.icon-instagram
  color $instagram-color
  &::after
    background $instagram-color
    
.icon-gplus
  color $gplus-color
  &::after
    background $gplus-color

      
@keyframes bubble
  0% {}
  100%
    transform scale(1)

@keyframes bubble2
  0% {}
  100%
    color #fff

    
              
            
!

JS

              
                
              
            
!
999px

Console