CSS3 text-shadow - text shadow effect
CSS3 text-shadow is used to design text shadow effects. Usually we will use it on web page titles to increase visual effects. It can also be used in the design of some artistic fonts, so you don’t need to use GIMP or Photoshop and other drawing software. Easily make shadow effects. text-shadow is supported by almost all mainstream browsers, but IE9 and earlier versions of IE browsers do not support the text-shadow attribute. Most mainstream browsers such as FireFox, Chrome, Safari, Opera, etc. support CSS3 text -shadow attribute.
CSS3 text-shadow basic syntax
CSS3 text-shadow example
example, we set the X axis, Y axis and the shadow range to 3px, and the color is light gray (color code #cccccc) to create a soft shadow effect, is it more three-dimensional Feel it? This special effect is not visible in IE9 and earlier versions of IE browsers. Suppose we cancel the third attribute, it will appear a bit rougher, like the following.
CSS3 text-shadow Example 2: Blooming effect
We set the X-axis and Y-axis shadows to zero first, control the shadow range at 15px, and choose light purple (color code #FF37FD) to create such blooming Text shadow effects. In the past, such effects must be processed in the drawing software first. Now CSS3 text-shadow is really convenient, but text-shadow can only process text. If you want to process block shadow effects, please use CSS3 The box-shadow attribute.
Post a Comment
0 Comments