How to create 3d text using css

CSS3 finally introduse the use of Photoshop in terms of giving text shadows. Here we are trying to create some examples of text shadows in CSS3 and thought of creating 3D text by giving multiple shadows hope you will enjoy that.

Do you know text shadows were announced since the beginning of CSS2 however, but the only one browser supporting that was Safari. If you talk about today’s condition, almost all the browsers are successfully supporting text shadows feature of css3 except Internet explorer.

Here we are going to cover some examples of text-shadow.
These all examples supporting browser Firefox, Safari/Chrome and Opera.
Let’s start how we create 3D text using CSS3.

CSS 3D TEXT EXAMPLE 1.

// CSS CODE
<style>
.css_3d_text1 {
    color: #000000;
    text-align:center;
    font: bold 52px Helvetica, Arial, Sans-Serif;
    text-shadow: 2px 2px #FF0000, 2px 2px #FF0000, 3px 3px #FF0000, 4px 4px #FF0000, 5px 5px #FF0000, 6px 6px #FF0000;
    -webkit-transition: all 0.4s ease-out;
    -moz-transition:    all 0.4s ease-out;
    -ms-transition:     all 0.42s ease-out;
    -o-transition:      all 0.4s ease-out;
}
.css_3d_text1:hover {
   color: #FF0000;
   text-shadow: 2px 2px #0000FF, 2px 2px #0000FF, 3px 3px #0000FF, 4px 4px #0000FF, 5px 5px #0000FF, 6px 6px #0000FF;   
}
</style>

//HTML CODE
<p class="css_3d_text1">CSS 3D TEXT - PHPKIDA</p>

CSS 3D TEXT EXAMPLE 2.

// CSS CODE
<style>
.css_3d_text2 {
    color: #000000;
    text-align:center;
    font: bold 52px Helvetica, Arial, Sans-Serif;
    text-shadow: 2px 2px #fe4902, 3px 3px #fe4902, 4px 4px #fe4902;
    -webkit-transition: all 0.4s ease-out;
    -moz-transition:    all 0.4s ease-out;
    -ms-transition:     all 0.42s ease-out;
    -o-transition:      all 0.4s ease-out;
}
.css_3d_text2:hover {
   color: #000000;
   text-shadow: 4px 4px #FF0000, 4px 4px #FF0000, 5px 5px #FF0000, 6px 6px #FF0000, 6px 6px #FF0000, 6px 6px #FF0000;   
}

</style>

//HTML CODE
<p class="css_3d_text2">CSS 3D TEXT - PHPKIDA</p>

CSS 3D TEXT EXAMPLE 3.

// CSS CODE
<style>
.css_3d_text3 {
    color:#FF0000;
    font: bold 52px Helvetica, Arial, Sans-Serif;
    text-align:center;
    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);
}

</style>

//HTML CODE
<p class="css_3d_text3">CSS 3D TEXT - PHPKIDA</p>

CSS 3D TEXT EXAMPLE 4.

// CSS CODE
<style>
.css_3d_text4 {
    color:#FFFFFF;
    font: bold 52px Helvetica, Arial, Sans-Serif;
    text-align:center;
    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);
}
</style>

//HTML CODE
<p class="css_3d_text4">CSS 3D TEXT - PHPKIDA</p>

CSS 3D TEXT EXAMPLE 4.

// CSS CODE
<style>
.css_3d_text5 {
    font: bold 52px Helvetica, Arial, Sans-Serif;
    text-align:center;
    color: rgba(0,0,255);
    text-shadow: 4px 0px #FF0000, 4px 0px #FF0000, 4px 0px #FF0000, 4px 0px #FF0000, 0px 0px #FF0000, 4px 0px #FF0000;
}

</style>
//HTML CODE
<p class="css_3d_text5">CSS 3D TEXT - PHPKIDA</p>

You Can View Demo and download Source Code of This Tutorial

If You have any question and problem in this code feel free, leave comment below! SHARE WITH YOUR FRIENDS..

Leave a Reply

Related Posts: You may like

Rotating Words with CSS Animations

Pure CSS Loader and spinners animation

Pure css drop down menu

Pure css dropdown navigation bar

PHPKIDA Offering Free Tools:

INSTA DOWNLOADER

Download Instagram Videos & Photos.

Download Now

CURRENCY CONVERTER

Real Time Currency Converter

Convert Now

ROBOST.TXT GEN.

Robots.txt File Creater

Create Now

HTML MINIFIER

Compress yout HTML Code

Minify Now

CSS MINIFIER

Compress yout CSS Code

Minify Now

JAVASCRIPT MINIFIER

Compress yout JavaScript Code

Minify Now

Sign up for weekly update

Milkshake is almost ready. If you're interested in testing it out, then sign up below to get exclusive access.