How to Create 3d text effect using simple css code

Today I will tell you how to create 3d text using simple css3 code. The 3D Text is used to highlight the text of the heading in the web pages. This is very easy to create the following code is used to create this types of 3D Text.

.a3d_text {
font-size: 75px;
text-transform: uppercase;
color: #673AB7;
text-shadow:
-6px 6px 10px rgba(103, 58, 183, 0.33),
1px -1px 0px rgba(235, 235, 235, 0.75),
2px -2px 0px rgba(215, 215, 215, 0.75),
-1px 1px 0px rgba(160, 160, 160, 0.75),
-2px 2px 0px rgba(190, 190, 190, 0.75),
-3px 3px 0px rgba(200, 200, 200, 1),
-4px 4px 0px rgba(186, 186, 186, 1),
-5px 5px 0px rgba(172, 172, 172, 1),
-6px 6px 0px rgba(158, 158, 158, 1),
-7px 7px 0px rgba(144, 144, 144, 1),
-8px 8px 0px rgba(130, 130, 130, 1),
-7px 7px 15px rgba(0, 0, 0, 0.2),
-7px 7px 18px rgba(0, 0, 0, 0.2),
-7px 7px 20px rgba(0, 0, 0, 0.1),
-6px 8px 20px rgba(0, 0, 0, 1);
}

You can change the 3D text color by changing the color code of color: #673AB7;  This types of 3D texts looks very nice.The text-shadow is the css property is used to give the shadows to the text in 3D effects.Multiple shadows in different positions will give the perfect 3D effects to the text.

In this example i given the css code for 3D text just use this your sites and also check the demo link for live check the result of the example. I hope this will be useful. 





How to Create 3d text effect using simple css code

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>3D Text Effect</title>
<style>
body {
background-color: #eee;
font-family: sans-serif;
text-align: center;
}
.a3d_text {
font-size: 75px;
text-transform: uppercase;
color: #673AB7;
text-shadow:
-6px 6px 10px rgba(103, 58, 183, 0.33),
1px -1px 0px rgba(235, 235, 235, 0.75),
2px -2px 0px rgba(215, 215, 215, 0.75),
-1px 1px 0px rgba(160, 160, 160, 0.75),
-2px 2px 0px rgba(190, 190, 190, 0.75),
-3px 3px 0px rgba(200, 200, 200, 1),
-4px 4px 0px rgba(186, 186, 186, 1),
-5px 5px 0px rgba(172, 172, 172, 1),
-6px 6px 0px rgba(158, 158, 158, 1),
-7px 7px 0px rgba(144, 144, 144, 1),
-8px 8px 0px rgba(130, 130, 130, 1),
-7px 7px 15px rgba(0, 0, 0, 0.2),
-7px 7px 18px rgba(0, 0, 0, 0.2),
-7px 7px 20px rgba(0, 0, 0, 0.1),
-6px 8px 20px rgba(0, 0, 0, 1);
}
</style>
</head>
<body>
<h1 class="a3d_text">San Web Corner</h1>
<h3><a href="http://www.sanwebcorner.com">www.sanwebcorner.com</a>
</body>
</html> 

Post a Comment

0 Comments