Adding Text Effects using CSS3
💻 coding

Adding Text Effects using CSS3

1 min read 147 words
1 min read
ShareWhatsAppPost on X
  • 1CSS3 allows the creation of 3D text effects using text-shadow and @font-face properties.
  • 2These text effects are compatible with modern browsers like Chrome, Safari, and Firefox, but not Internet Explorer.
  • 3The article provides examples of different text effects and encourages experimenting with color combinations for better results.

AI-generated summary · May not capture all nuances

Key Insight
AskGif

"CSS3 allows the creation of 3D text effects using text-shadow and @font-face properties."

Adding Text Effects using CSS3

This post explains how to create Photoshop-style 3D text effects using CSS3 text-shadow and @font-face property. These properties are supported in all modern browsers like Chrome, Safari, and Firefox, except Internet Explorer, is dead. Try following examples and enrich your web pages, use better color combinations for pretty results

Effect 1

.effect_1
{
color: #fff;
font: 80px Times New Roman, Times, serif;
text-shadow: 0 1px 0 #999, 
0 2px 0 #999, 
0 3px 0 #999, 
0 4px 0 #999, 
0 5px 0 #999, 
0 6px 0 #000;
}

Effect 2

.effect_2
{
font: 80px Times New Roman, Times, serif;
text-shadow: -1px -1px 0px #000, 1px 1px 0px #666;
}

Effect 3

.effect_3
{
font: 80px Times New Roman, Times, serif;
text-shadow: 2px 2px 8px #fff;
color: transparent;
}

@font-face

@font-face
{
font-family: chandy;
src: url('comesinhandy.ttf') format("opentype"); 
}
.myfont
{
font-family:chandy;font-size:80px
}
// HTML Code
<div class="myfont">Sumit Chourasia</div>

Enjoyed this article?

Share it with someone who'd find it useful.

ShareWhatsAppPost on X

AskGif

Published on 26 August 2019 · 1 min read · 147 words

Part of AskGif Blog · coding

You might also like

Adding Text Effects using CSS3 | AskGif Blog