Posted By

thesmu on 01/06/11


Tagged

text 3D CSS3


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

neex123


CSS3 3D Text


 / Published in: CSS
 

URL: http://markdotto.com/playground/3d-text/

Use multiple text-shadows to create 3D text on any HTML element. No extra HTML, no extra headaches, just awesomesauce.

Works in the latest builds of Safari, Chrome, and Firefox.

  1. h1 {
  2. text-shadow: 0 1px 0 #ccc,
  3. 0 2px 0 #c9c9c9,
  4. 0 3px 0 #bbb,
  5. 0 4px 0 #b9b9b9,
  6. 0 5px 0 #aaa,
  7. 0 6px 1px rgba(0,0,0,.1),
  8. 0 0 5px rgba(0,0,0,.1),
  9. 0 1px 3px rgba(0,0,0,.3),
  10. 0 3px 5px rgba(0,0,0,.2),
  11. 0 5px 10px rgba(0,0,0,.25),
  12. 0 10px 10px rgba(0,0,0,.2),
  13. 0 20px 20px rgba(0,0,0,.15);
  14. }

Report this snippet  

You need to login to post a comment.