How to Create 3d text effect using simple css code | Sanwebcorner

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

Labels

360 degree view product image 3d rotate 3d text 3step-form Accordion menu ajax All Browsers Animated Background Gradient animation audio controller auto complete Best accordion menu bootstrap border bounce effect on hover Breadcrumb calculate age by dob calendar Captcha change image on mouse move color chooser countdown Counter on scroll create random number Css css animation css buttons css hover css3 customized upload Button Date picker delete data from table Different scroll speed email otp verification email verifier Embed eventlist Expanding Menu feedbck form flash news section close button full screen menu Google custom search Google Maps Google reCAPTCHA Google site search gradient hide menu Horizontal News ticker Hover Htm Html html dropdown html form html5 html5 form validation Iframe image hover increment decrement textbox value based on select box Javascript Jquery js Layered image effect on mouse hover lock & unlock page scroll marquee marquee with close button mobile number validation mobile otp login Multi-level-drop-down-menu multi-level-form Multi-Step-form mysql News ticker on hover change text to image our team page password generator password strength checker Photoshop PHP populate html selectbox Popup image on click the link pure css Question type form random number generate Random password Redirect page Based on the select box while submit the form responsive responsive menu responsive popup box Responsive Vertical Time line design rotate image selectbox based on select box simple coming soon page simple countdown based on end date simple typing effect slider sliding tab sms otp login statistic counter on scroll switch tag shape team member Time picker toggle toggle view transparent button underline animation up down slide validation vertical fixed sidebar Webtips Youtube