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

              
                <!--
One of those cool things about this approach (blurring via browser effects) is that a *very* low-res image can be used.

NOTE: This uses the "-webkit-filter" property only available in webkit. I've created an SVG version here: https://codepen.io/justinklemm/pen/CwKyr
-->

<div class="container">
  
  <img class="photo" src="http://farm5.staticflickr.com/4003/4333634926_e1e967e048_m.jpg" />
  
  <div class="content">
    <h1>Hipster Blurs (Webkit)</h1>
    <h2>Crisp text on blurred backgrounds. Everybody's doing it.</h2>
  </div>
  
</div>
              
            
!

CSS

              
                @import compass

@import url(https://fonts.googleapis.com/css?family=Roboto:100)
  
body
  margin: 0
  padding: 0
  background-color: #355358
  font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif
  
.container
  postion: relative
    
.photo
  position: absolute
  z-index: -1
  width: 100%
  -webkit-filter: blur(5px)
   
.content
  color: #fff
  text-align: center
  padding: 100px 0 0 0
    
  h1
    font-size: 60px
    font-weight: 100
    padding: 0
    margin: 0 0 20px 0
    line-height: 100%
    text-shadow: 0px 0px 50px #000
    
  h2
    font-size: 24px
    font-weight: 100
    padding: 0
    margin: 0
    text-shadow: 0px 0px 50px #000
              
            
!

JS

              
                
              
            
!
999px

Console