CSS Filter effect (1)

Source: Internet
Author: User

1. Alpha Filter

Syntax: {filter: alpha (opacity = opacity, finishopacity = finishopacity, style = style, startx = startx,
Starty = starty, finishx = finishx, finishy = finishy )}

The "Alpha" attribute is to mix a target element with a background. The designer can specify a value to control the degree of mixing. In general, this "mixed with the background" is the transparency of an element. By specifying coordinates, you can specify the transparency of points, lines, and surfaces. Their parameter meanings are as follows:
"Opacity" represents the level of transparency. The default range is from 0 to 100. They are actually percentages. That is to say, 0 indicates completely transparent, and 100 indicates completely opaque ." Finishopacity "is an optional parameter. If you want to set the transparency of the gradient, you can use them to specify the transparency at the end. The range is also 0 to 100. The style parameter specifies the shape features of the transparent area. 0 represents a uniform shape, 1 represents a linear shape, 2 represents a radial shape, and 3 represents a rectangle ." Startx "and" starty "represent the starting X and Y coordinates of the gradient transparency effect ." Finishx "and" finishy "represent the coordinates of X and Y after the gradient transparency effect ends.

The effect is as follows:

2. blur filter

Syntax: For HTML: {Ilter: blur (add = add, direction = direction, strength = strength )}
For the script language: [oblurfilter =] object. Filters. blur
Using your fingers on a dry oil painting quickly gets out of date and the screen gets blurred ." Blur is the same blur effect.
The "add" parameter is a Boolean value that determines "true (default)" or "false ". It specifies whether the image is changed to the fuzzy effect of the image. The Blur effect is performed clockwise. The "ction" parameter is used to set the blur Direction. Where 0 degrees indicates vertical up, and then every 45 degrees is a unit. The default value is 270 degrees to the left. The "strength" value can only be specified by an integer. It indicates how many pixels of width will be blurred. The default value is 5. If the font on the webpage is set to "add = 1", the font will be very nice. As follows:
Filter: blur (add = ture, direction = 135, strength = 10)

I fly to you, with gentle rain!

3. fliph and flipv Filters

Syntax: {filter: filph} and {filter: filpv} are horizontal inversion and vertical inversion, respectively, as follows:

4. chroma Filter

Syntax: {filter: chroma (color = color )}
You can use the "chroma" attribute to set the color specified in an object to transparent. The parameter color is the color to be transparent. The following is the blue text, and then use the chroma filter to filter out the blue, it becomes the following.
Filter: chroma (color = blue)

Shuiyunfang

5. dropshadow Filter

Syntax: {filter: dropshadow (color = color, offx = ofx, offy = offy, positive = positive )}

"Dropshaow", as its name implies, is the shadow effect of adding objects. The working principle is to create an offset with deeper values. "Color" indicates the color of the Shadow. "offx" and "offy" indicate the hunger offset of the shadow in the X and Y directions, respectively. The positive parameter is a Boolean value. If it is true (not 0), a visible projection is created for any non-transparent pixel. If it is "fasle (0)", a transparent effect is created for the transparent pixel part.

Normal text Text after dropshadow (color = gray, offx = 5, offy = 5. Positive = 0)

6. Glow filter

Syntax: {filter: glow (color = color, strength )}
When the "Glow" attribute is used for an object, the edge of the object will produce a similar luminous effect. "Color" indicates the color of light, and "strength" indicates the intensity. You can specify the intensity from any integer between 1 and 255.
Filter: Effects after glow (color = Red, strength = 10)

Taobaofang

Filter: effect after glow (color = # FFFF00, strength = 5)

Taobaofang

It seems that you can put Photoshop aside, right?

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.