Pen Settings

HTML

CSS

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

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

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.

HTML

              
                <a href="#" class="translucent">
  <div>Button</div> 
</a>
<svg>
  <filter id="blur">
    <feGaussianBlur stdDeviation="5" />
  </filter>
</svg>
<!--
Credit Yosemite Wallpaper
Link - right bottom
-->
<a href="http://www.schieb.de/728109/neue-hintergrundbilder-von-osx-10-10-yosemite-jetzt-laden" class="credit">Yosemite Wallpaper</a>
              
            
!

CSS

              
                @import "nib"

body
  background url('http://img.schieb.de/wp-content/uploads/2014/08/osx-yosemite-wallpaper-sunset.jpg') no-repeat 50% 50% fixed
  background-size cover
  font 14px/1.4 Helvetica, Arial, sans-serif
  overflow hidden

.translucent
  width 400px
  position absolute
  display block
  line-height 120px
  top 50%
  left 50%
  background inherit
  border-radius 60px
  overflow hidden
  color #08c
  margin -60px -200px
  text-decoration none
  font-size 40px
  visibility hidden
  &:before
    visibility visible
    content ''
    position absolute
    width 110%
    height 110%
    top -5%
    bottom -5%
    background inherit
    -webkit-filter url('#blur') saturate(2)
    -moz-filter url('#blur')
    filter url('#blur')
  div
    background rgba(235,235,235,0.6)
    text-align center
    position relative
    display block
    visibility visible
    transition background .3s ease
    &:hover
      background rgba(235,235,235,0.54)

.credit
  position absolute
  bottom 15px
  right 15px
  color white
  display inline-block
  text-decoration none
  text-shadow 0px 1px 1px rgba(#000,.2)
  &:hover
    color rgba(235,235,235,0.6)
  
              
            
!

JS

              
                $(".translucent").draggable();
              
            
!
999px

Console