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

              
                <h1>text effects</h1>
<h2 class="text text_anaglyphic">anaglyphic</h2>
<h2 class="text text_embedded">embedded</h2>
<h2 class="text text_embossed">embossed</h2>
<h2 class="text text_neon">neon</h2>
<h2 class="text text_fire">fire</h2>
<h2 class="text text_retro">retro</h2>

<h2 class="text text_blurred">
  <svg width="100%">
    <text class="text_blurred_svg" font-size="60" font-family="Roboto, "Gill Sans", "Gill Sans MT", Calibri, sans-serif" x="300" y="80" text-anchor="left">Blurred</text>
    <filter id="textFilter">
      <feGaussianBlur stdDeviation="5" />
    </filter>
  </svg>
</h2>

<h2 class="text text_gradient">
  <svg width="100%">
  <defs>
    <linearGradient id="grad1" x1="0%" y1="0%" x2="0%" y2="100%">
      <stop offset="0%" style="stop-color:#5e5e5e;stop-opacity:1" />
      <stop offset="100%" style="stop-color:#a3a3a3;stop-opacity:1" />
    </linearGradient>
  </defs>
  <text fill="url(#grad1)" font-size="60" font-family="Roboto, "Gill Sans", "Gill Sans MT", Calibri, sans-serif" x="300" y="100" text-anchor="left">Gradient</text>
</svg>
</h2>

<h2 class="text text_golden">
  <svg width="100%">
  <defs>
    <linearGradient id="grad2" x1="0%" y1="0%" x2="0%" y2="100%">
      <stop offset="0%" style="stop-color:#f9d400;stop-opacity:1" />
      <stop offset="48%" style="stop-color:#f89c00;stop-opacity:1" />
      <stop offset="53%" style="stop-color:#f89c00;stop-opacity:1" />
      <stop offset="100%" style="stop-color:#f9d400;stop-opacity:1" />
    </linearGradient>
  </defs>
  <text fill="url(#grad2)" font-size="60" font-family="Roboto, "Gill Sans", "Gill Sans MT", Calibri, sans-serif" x="300" y="100" text-anchor="left">Golden</text>
</svg>
</h2>

<div class="container">
  <h2 class="text text_stitched">stitched</h2>

</div>
<h2 class="text text_3d">3-d effect</h2>
              
            
!

CSS

              
                @import url(https://fonts.googleapis.com/css?family=Roboto);
body {
    background: #222222;
    font-family: Roboto, "Gill Sans", "Gill Sans MT", Calibri, sans-serif;
}

h1 {
    margin: 12px 40px 0;
    font-size: 25px;
    color: #f3fcff;
    font-weight: bold;
    -webkit-transition: all .2s linear;
    -o-transition: all .2s linear;
    transition: all .2s linear;
}

h1:hover {
    text-shadow:
               -3px 10px 0 #00b6f3,
               -5px 20px 0 #00a8e0,
               -7px 30px 0 #0099cc,
               -9px 40px 0 #008ab8,
               -11px 50px 0 #007ca5,
               -13px 60px 0 #006d91,
               -15px 70px 0 #005e7e,
               -17px 80px 0 #004f6a,
               -19px 90px 0 #004156,
               -21px 100px 0 #003243;
}

.text {
    font-size: 60px;
    margin: 40px 300px 0;
    text-transform: uppercase;
}

.text_anaglyphic {
    color: #f9689a;
    text-shadow: -4px -4px 0 #77caff;
}

.text_embedded {
    color: #111111;
    text-shadow: -1px 1px 1px #3e3e3e;
}

.text_embossed {
    color: #603624;
    text-shadow: -1px -1px 0 #5d5d5d;
}

.text_neon {
    color: #f5f5f5;
    text-shadow: 0 0 3px #f5f5f5,
               0 0 15px #7deaec,
               0 0 30px #7deaec;
}

.text_fire {
    color: #f5f5f5;
    text-shadow: 0 -1px 1px #f4eba1,
               0 -2px 2px #f0df72,
               0 -3px 3px #e2be3a,
               0 -10px 20px #b57400,
               0 -20px 30px #7d4217;
}

.text_retro {
    color: #7d4217;
    text-shadow: 3px 2px 0 #333333,
               6px 4px 0 #999999;
}

.text_blurred {
    height: 80px;
    margin: 40px auto;
    text-align: center;
}

.text_blurred_svg {
    fill: #a7a7a7;
    filter:url(#textFilter);
}

.text_gradient {
    height: 80px;
    margin: 40px auto;
    text-align: center;
}

.text_golden {
    height: 100px;
    margin: 40px auto;
    text-align: center;
}

.container {
    display: inline-block;
    padding: 13px;
    margin: 0 0 0 300px;
    background: #555555;
    -webkit-box-shadow: 1px 1px #111111;
    -moz-box-shadow: 1px 1px 3px #111111;
    box-shadow: 1px 1px 3px #111111;
    text-align: center;
}

.text_stitched {
    display: inline-block;
    padding: 25px 37px;
    border: 3px dashed #777777;
    margin: 0;
    text-align: center;
    color: #dddddd;
    background: #555555;
}

.text_3d {
    color: #b50e00;
    text-shadow: 1px 0 0 #510300,
               2px 0 0 #510300,
               3px 0 0 #510300,
               4px 1px 0 #510300,
               5px 2px 0 #510300,
               6px 3px 0 #510300,
               8px 4px 0 #510300,
               9px 5px 0 #510300,
               10px 6px 0 #510300;
}
              
            
!

JS

              
                
              
            
!
999px

Console