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

              
                <h1>Two approaches to 3D text</h1>
<h2 class="filter-shadow">Filter Shadow</h2>
<h2 class="text-shadow">Text Shadow</h2>
              
            
!

CSS

              
                html, body {
  height: 100%;
}

body {
  margin: 0;
  padding: 2em;
  background-position: fixed;
  background: linear-gradient(180deg, #f14, #ff8300);
  font-family: "Avenir Next Condensed", sans-serif;
}

h1 {
  color: #613;
  text-align: center;
}

h2 {
  font-weight: 600;
  text-transform: uppercase;
  text-align: center;
  font-size: 10em;
}

.filter-shadow {
  color: transparent;
  background: linear-gradient(180deg, #fefefe, #bbb);
  -webkit-background-clip: text;
  -webkit-filter:
    drop-shadow( -1px -1px white )
    drop-shadow( 1px 1px darken(white, 50%) )
    drop-shadow( 1px 1px darken(white, 52%) )
    drop-shadow( 1px 1px darken(white, 54%) )
    drop-shadow( 1px 1px darken(white, 56%) )
    drop-shadow( 1px 1px darken(white, 58%) )
    drop-shadow( 1px 1px darken(white, 60%) )
    drop-shadow( 1px 1px darken(white, 62%) )
    drop-shadow( 1px 1px darken(white, 64%) )
    drop-shadow( 1px 1px darken(white, 66%) )
    drop-shadow( 1px 1px darken(white, 68%) )
    drop-shadow( 1px 1px darken(white, 70%) )
    drop-shadow( 12px 12px 30px rgba(black, 0.2) )
    drop-shadow( 12px 12px 10px rgba(black, 0.2) )
  ; 
}

.text-shadow {
  color: #f4f4f4;
 text-shadow:
    -1px -1px white,
    1px 1px darken(white, 50%),
    2px 2px darken(white, 52%),
    3px 3px darken(white, 54%),
    4px 4px darken(white, 56%),
    5px 5px darken(white, 58%),
    6px 6px darken(white, 60%),
    7px 7px darken(white, 62%),
    8px 8px darken(white, 64%),
    9px 9px darken(white, 66%),
    10px 10px darken(white, 68%),
    11px 11px darken(white, 70%),
    18px 18px 30px rgba(black, 0.4),
    18px 18px 10px rgba(black, 0.4)
  ; 
}
              
            
!

JS

              
                
              
            
!
999px

Console