Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <h1>12 Fun CSS Text Shadows You Can Copy and Paste</h1>

<p>Working examples originally from <a href="https://designshack.net/articles/css/12-fun-css-text-shadows-you-can-copy-and-paste/">https://designshack.net/articles/css/12-fun-css-text-shadows-you-can-copy-and-paste/</a>. </p>

<h2 class="demo">Demo</h2>

<div class="letterpress">
  <h2>Quick and Dirty Letterpress</h2>
</div>

<div class="hard-shadow">
  <h2>Hard Shadow</h2>
</div>

<h2 class="double-shadow">Double Shadow</h2>

<div class="down-and-distant">
  <h2>Down and Distant</h2>
</div>

<div class="close-and-heavy">
  <h2>Close and Heavy</h2>
</div>

<div class="mark-dotto-3d">
  <h2>Mark Dotto's 3D Text.</h2>
  <p><a href="http://markdotto.com/playground/3d-text/">http://markdotto.com/playground/3d-text/</a></p>
</div>

<div class="gordon-hall-inset">
  <h2>Gordon Hall’s Inset Text</h2>
  <p>This doesn't seem to work. <a href="http://www.gordonhallart.com/blog/2011/04/27/creating-a-true-inset-text-effect-using-css3/">Link broken.</a></p>
</div>

<div class="glowing">
  <h2>Glowing</h2>
</div>

<div class="superhero">
  <h2>Superhero</h2>
</div>

<div class="multilight">
  <h2>Multiple Light Sources</h2>
</div>

<div class="soft-emboss">
  <h2>Soft Emboss</h2>
</div>
            
          
!
            
              div, body>h2 { 
  display: inline-block;
  border: solid black 1px;
  float: left;
  padding: .5rem;
  width: 43%;
  margin-right: 0;
}

.demo {
  text-shadow: 2px 4px 3px rgba(0,0,0,0.3);
}

.letterpress {
  background: #222;
}
.letterpress h2 {
  color: rgba(0,0,0,0.6);
  text-shadow: 2px 2px 3px rgba(255,255,255,0.1);
}

.hard-shadow {
  color: white;
  background: #fff3cd;
}
.hard-shadow h2 {
  text-shadow: 3px 3px 0px rgba(0,0,0,0.2);
}

.double-shadow {
  text-shadow: 2px 2px 0px #fff, 4px 4px 0px rgba(0,0,0,0.15);
}

.down-and-distant {
  color: white;
  background: #fff3cd;
  padding: .25rem .5rem 1.75rem .5rem;
}
.down-and-distant h2 {
  text-shadow: 0px 2px 0px #b2a98f,
               0px 7px 5px rgba(0,0,0,0.15),
               0px 8px 1px rgba(0,0,0,0.1),
               0px 12px 15px rgba(0,0,0,0.1);
}

.close-and-heavy {
  color: white;
  background: #6cfafc;
}
.close-and-heavy h2 {
  text-shadow: 0px 2px 3px rgba(0,0,0,0.4),
               0px 4px 7px rgba(0,0,0,0.1),
               0px 9px 12px rgba(0,0,0,0.1);
}

.mark-dotto-3d {
  color: white;
  background: #11A9E2;
}
.mark-dotto-3d h2 {
  text-shadow: 0 1px 0 #ccc,
               0 2px 0 #c9c9c9,
               0 3px 0 #bbb,
               0 4px 0 #b9b9b9,
               0 5px 0 #aaa,
               0 6px 1px rgba(0,0,0,.1),
               0 0 5px rgba(0,0,0,.1),
               0 1px 3px rgba(0,0,0,.3),
               0 3px 5px rgba(0,0,0,.2),
               0 5px 10px rgba(0,0,0,.25),
               0 10px 10px rgba(0,0,0,.2),
               0 20px 20px rgba(0,0,0,.15);
}

.gordon-hall-inset {
  background: #cbcbcb;
}
.gordon-hall-inset h2 {
  font-size: 200%;
  background-color: #666666;
    -webkit-background-clip: text;
    -moz-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: rgba(255,255,255,0.5) 0px 3px 3px;
}

.glowing {
  color: white;
  background: #9a2e24;
}
.glowing h2 {
  text-shadow: 0px 0px 6px rgba(255,255,255,0.7);
}

.superhero {
  color: white;
  background: #6cfafc;
}
.superhero h2 {
  text-shadow: -3px 3px 0px #00e6e6,
               -6px 6px 0px #01cccc,
               -9px 9px 0px #00bdbd;
}

.multilight {
  color: white;
  background: #6cfafc;
}
.multilight h2 {
  text-shadow: 0px 8px 3px rgba(0,0,0,0.1),
               5px 10px 3px rgba(0,0,0,0.05),
               -5px 10px 3px rgba(0,0,0,0.05);
}

.soft-emboss {
  color: white;
  background: #11A9E2;
}
.soft-emboss h2 {
  color: rgba(0,0,0,0.6);
  text-shadow: 2px 8px 6px rgba(0,0,0,0.2),
               0px -5px 35px rgba(255,255,255,0.3);
}
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console