Create simple and good looking 3D text using Css3 Shadow | Sanwebcorner

Create simple and good looking 3D text using Css3 Shadow

This post is help you to create 3D text using pure css3 shadow property. To highlight the text we should use some heighliting method to the text  this 3d text is one of the method to highlight the customer.

This is done by only pure css3 codes. the below image shows the how the 3d text looks. You can apply this 3d shadow to the any of the fonts. here i used the Passero One google font. Below is the demo page check it out. I hope you like this example post.


Html for 3D Text using Css3:

<h1>How to create 3d text using css3 shadow </h1>
<div id="wrapper">
<h1 class="tt1">Sanwebcorner.com</h1>
<h1 class="tt3">Sanwebcorner.com</h1>
<h1 class="tt4">Sanwebcorner.com</h1>
<h2><a href="http://www.sanwebcorner.com">www.sanwebcorner.com</a></h2>

Css for 3D Text using Css3:

.tt1{
font: normal 46px/normal "Passero One", Helvetica, sans-serif;
color:#FFFFFF;
text-shadow: 0 1px 0 #ccc,
0 2px 0 #c9c9c9,
0 3px 0 #bbb,
0 4px 0 #b9b9b9,
0 5px 0 #aaa,
0 6px 1px rgba(0,0,0,.1),
0 0 5px rgba(0,0,0,.1),
0 1px 3px rgba(0,0,0,.3),
0 3px 5px rgba(0,0,0,.2),
0 5px 10px rgba(0,0,0,.25),
0 10px 10px rgba(0,0,0,.2),
0 20px 20px rgba(0,0,0,.15);
}

.tt3{
color: rgba(169,214,169,1);
font: normal 46px/normal "Passero One", Helvetica, sans-serif;
text-shadow:  0 1px 0 rgba(255,255,255,1) ,
0 2px 0 rgba(255,255,255,1) , 
0 3px 0 rgba(255,255,255,1) , 
0 4px 0 rgba(255,255,255,1) , 
0 5px 0 rgba(255,255,255,1) , 
0 6px 1px rgba(0,0,0,0.0980392) , 
0 0 5px rgba(0,0,0,0.0980392) , 
0 1px 3px rgba(0,0,0,0.298039) , 
0 3px 5px rgba(0,0,0,0.2) , 
0 -5px 10px rgba(0,0,0,0.247059) , 
0 -7px 10px rgba(0,0,0,0.2) , 
0 -15px 20px rgba(0,0,0,0.14902) ;

}

.tt4
{
font: normal 46px/normal "Passero One", Helvetica, sans-serif;
text-shadow:
-1px 1px 0 #ddd,
-2px 2px 0 #c8c8c8,
-3px 3px 0 #ccc,
-4px 4px 0 #b8b8b8,
-4px 4px 0 #bbb,
0px 1px 1px rgba(0,0,0,.4),
0px 2px 2px rgba(0,0,0,.3),
-1px 3px 3px rgba(0,0,0,.2),
-1px 5px 5px rgba(0,0,0,.1),
-2px 8px 8px rgba(0,0,0,.1),
-2px 13px 13px rgba(0,0,0,.1);

}