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

              
                <div class="chrome80s centered" data-text="COMMANDO">COMMANDO</div>


<a style="color:white" href="http://www.coding-dude.com/wp/css/svg-filters/">SVG Filters</a>

<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
  <defs>
    <filter id="bevel">
      <!-- filter stuff happening here -->
      <feMorphology operator="dilate" radius="3" in="SourceGraphic" result="bevel" />
    </filter>
    <filter id="noise" x="0vw" y="0vh" width="100vw" height="100vh">
      <feFlood flood-color="#808080" result="neutral-gray" />      
      <feTurbulence in="neutral-gray" type="fractalNoise" baseFrequency="0.8" numOctaves="10" stitchTiles="stitch" result="noise"/>
      <feColorMatrix in="noise" type="saturate" values="0" result="destaturatedNoise"></feColorMatrix>
      <feComponentTransfer in="desaturatedNoise" result="theNoise">
        <feFuncA type="table" tableValues="0 0 0.2 0"></feFuncA>
      </feComponentTransfer>
      <feBlend in="SourceGraphic" in2="theNoise" mode="soft-light" result="noisy-image"/>      
    </filter>
 
  </defs>
</svg>
              
            
!

CSS

              
                :root{
  background:radial-gradient(#0d2f52 0%,black 40%) -20vw 10vh no-repeat black;
  
  filter:url('#noise') contrast(110%);
  margin:0;
  padding:0;
  width:100vw;
  height:100vh;
  position:absolute;
  
}

.centered{
  text-align:center;
  margin-top:calc(50vh - 0.5em);
  
}
.chrome80s{
  font-family: 'Commando', sans-serif;
  font-size:8rem;
  font-weight:100;
  position:relative;
  white-space:nowrap;
  
  background-image:linear-gradient(#010012 20%,#4694c9 40%,#fdf9f7 50%,#010923 50%,#d7674f 60%, #ffc2a4 70%, #edb18c 90%);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  -webkit-text-stroke-width: 0.1rem;
  -webkit-text-stroke-color: rgba(0,0,0,0.2);
}

.chrome80s:before{
  content:attr(data-text);
  filter:url(#bevel);
  background:linear-gradient(#ffffff 20%,#58bee4 30%, #204a68 50%,#62a7d1 70%, #ffffff 80%) 0% 0% repeat;
  -webkit-background-clip:text;
  position:absolute;
  z-index:-1;
  
}

.chrome80s:after{
  content:attr(data-text);
  position:absolute;
  text-shadow:0 0 25px rgba(255,255,255,0.5);
  transform:translate(-100%);
  z-index:-2;
}
              
            
!

JS

              
                
              
            
!
999px

Console