CSS3D creates a stereoscopic 3D effect with CSS3 only. First I just created this red and cyan effect because I thought it looks cool. But then I got some 3D glasses and was shocked that it actually works. Basically you just need one line of CSS. A text-shadow with a red and cyan offset. The trick is to use “em“s for the text-shadows. That way, if you change the font-size, the text-shadows change in the same proportion.

text-shadow: -0.06em 0 red, 0.06em 0 cyan;

See the Demo →

Note: Actually you are not limited to text only. You can use the same technique with box-shadows. It even works when you add some of webkit’s 3D transforms like rotateY.

Update: Wow! I submitted this to Smashing Magazine’s CSS3 Design Contest and it made it on 3rd place, which makes me incredible happy. Thanks!

For comments please use twitter.

  1. jjjjasmine reblogged this from brocatus
  2. schittenundhelm reblogged this from miserabilia
  3. litmustime reblogged this from simurai
  4. on8legs reblogged this from brocatus
  5. miserabilia reblogged this from superamit
  6. kahaee reblogged this from simurai
  7. lyzaander reblogged this from simurai
  8. indivigo reblogged this from agirlandarobot
  9. benkling reblogged this from simurai
  10. deveerei reblogged this from simurai and added:
    don’t have 3-d glasses…
  11. darcystonge reblogged this from simurai
  12. wisdom-from-introspect reblogged this from simurai
  13. ponciano reblogged this from jeffisageek
  14. bbekdemir reblogged this from simurai
  15. fania reblogged this from cozar and added:
    tsuvosocial: simurai:
  16. cozar reblogged this from tsuvosocial
  17. erikknutson reblogged this from brocatus
About me
simurai