July 14
This is so cool in red/blue glasses! (works on Firefox)
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.
-
psychid reblogged this from athenability
-
swampariose2 liked this
-
slowpokeinse liked this
-
cakeisdead reblogged this from simurai
-
daycynamm liked this
-
semendeev liked this
-
semendeev reblogged this from simurai
-
smothercrazybukkake liked this
-
latexcutelesbian liked this
-
tswamyee reblogged this from simurai
-
kidapu reblogged this from simurai
-
misantropist liked this
-
jeen-hao reblogged this from free-rider
-
idmserial reblogged this from free-rider
-
free-rider reblogged this from simurai and added:
Crack Data Enter
-
tresnasuparman liked this
-
whereshallwehavelunch liked this
-
junhvung liked this
-
c-l-u-s-t-e-r-i-n-g liked this
-
pridefulstrikes liked this
-
kirin91 reblogged this from classics2
-
azunyan55 liked this
-
classics2 reblogged this from superamit
-
roropoly reblogged this from simurai
-
14lovergreen reblogged this from vampwulfjt
-
vampwulfjt reblogged this from ixora
-
paranunmure reblogged this from simurai
-
1dbromance liked this
-
shuupershine reblogged this from simurai
-
tipsyrolls liked this
-
p-u-t-o liked this
-
paranunmure liked this
-
aestheticzombie reblogged this from simurai
-
livores reblogged this from simurai
-
killingbirds liked this
-
felicette liked this
-
musharna reblogged this from ixora and added:
Awesome CSS code.
-
3dboyfriend reblogged this from simurai
-
happyxyz liked this
-
mylittlehockeypuck reblogged this from ixora
-
love2dancesilly liked this
-
frackintoaster liked this
-
simurai posted this