CSS Filters: Glow Properties

Source: Internet
Author: User
Tags filter set set
css| Filter When you use the "Glow" attribute on an object, the edge of the object produces a glow-like effect. Its expression is as follows:

  Filter:glow (Color=color,strength=strength)

There are only two parameters for the Glow property: Color is the specified glow, strength specifies the intensity of the glow, and the parameter values from 1 to 255. Let's take a look at the effect of adding the Glow property:

How does it feel to have a burning flame. The code that implements this effect is as follows:

<HTML>
<title>filter glow</title>
<style> //* start setting CSS styles *//
<!--
. leaf{p Osition:absolute top:20 width:400;
Filter:glow (color= #FF3399, strength=15);
//* set class leaf, absolute positioning, Glow Filter properties, light-emitting color value is #ff3399, intensity is
15*//
.weny{position:absolute ; top:70 left:50 width:300;
Filter:glow (color= #9966CC, strength=10);
//* set Set class Weny, absolute positioning, Glow Filter properties, light-emitting color value #9966cc, strength
15*//
-->
</style>
<body>
<div class= "leaf" //*leaf class style *//
<p style= font-family:lucida handwriting;
Font-size:54pt;font-weight:bold;col Or: #003366;
Leaf mylove</p> //* set font name, size, weight, color *//
</div >
<div class= "Weny" //*weny class style *//
< P style= "Font-family:bailey font-size:48pt
Font-weight:bold;color: #99CC66;"
Weny good!</p>
</div>
</ Body>

  You can also change the color values to see what other glow effects are.







Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.