CSS3 Texteffects

Several nice text styles using CSS3.
<html> <head> <style> body{ background-color:black; } h1{ font-size: 50px; color: white; } .fire{ text-shadow: 0px -1px 4px white, 0px -2px 10px yellow, 0px -10px 20px #ff8000, 0px -18px 40px red; } .threeD{ text-shadow: 0px 1px 0px #999, 0px 2px 0px #888, 0px 3px 0px #777, 0px 4px 0px #666, 0px 5px 0px #555, 0px 6px 0px #444, 0px 7px 0px #333, 0px 8px 7px #001135; } .twin{ color: rgba(0, 168, 255, 0.5); text-shadow: 3px 3px 0 rgba(255, 0, 180, 0.5); } .spooky{ color: #fff; text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #fff, 0 0 20px blue, 0 0 30px blue, 0 0 40px blue, 0 0 50px blue, 0 0 75px blue; letter-spacing: 5px; } .structure{ color: black; text-shadow: -1px -1px 1px rgba(255, 255, 255, 0.1), 1px 1px 1px rgba(0, 0, 0, 0.5); } .foggy{ color: rgba(255, 255, 255, 0.1); text-shadow: 0px 0px 15px rgba(255, 255, 255, 0.5), 0px 0px 10px rgba(255, 255, 255, 0.5); } .stroke{ -webkit-text-stroke: 1px white; color: black; text-shadow: 3px 3px 0 white, -1px -1px 0 white, 1px -1px 0 white, -1px 1px 0 white, 1px 1px 0 white; } .reflection{ font-size: 50px; color: white; } .reflected { position: relative; } .reflected:before, .reflected:after { display: block; position: absolute; bottom: -.8em; left: 0; right: 0; } .reflected:before { content: 'Reflection'; opacity: .3; -webkit-transform: scaleY(-1); -moz-transform: scaleY(-1); -o-transform: scaleY(-1); } .reflected:after { background: -webkit-gradient(linear, left top, left center, from(rgba(0,0,0,0)), to(rgb(0,0,0))); background: -moz-linear-gradient(top, rgba(0,0,0,0), rgb(0,0,0)); content: ' '; height: 2em; } .hacker{ color: #000; text-shadow: 0px 0px 8px #0F0; } </style> </head> <body> <center> <h1 class='fire'>Fire Text</h1> <h1 class='threeD'>3D Text</h1> <h1 class='twin'>Twin Text</h1> <h1 class='spooky'>Spooky Text</h1> <h1 class='structure'>Structure</h1> <h1 class='foggy'>Foggy Text</h1> <h1 class='stroke'>Stroke Text</h1> <h1 class="reflection reflected">Reflection</h1> <h1 class='hacker'>Hacker Text</h1> </center> </body> </html>

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Download this code in plain text format here