Css Filter effect (1) 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?
The above is the css Filter effect (1) _ basic tutorial content. For more information, see PHP Chinese Network (www.php1.cn )!