CSS filter property Detailed

Explanation CSS filter property
·
CSS filter: Mask property Mask property to establish a film covering the surface of the object
 Mask property to establish a film covering the surface of the object. Its expression is simple:
     the Filter: Mask (Color = color)
    is only a Color parameter is used to specify what color to use as a mask.
 CSS filters: blur property
if your hand quickly across the dry yet on a painting, the picture will become blurred. Blur attributes of CSS will achieve this blurring effect.
  First look at the expression blur attribute:
     filter: blur (= the Add the Add, direction, strength = strength)
        we see the blur attribute has three parameters: add, direction, strength.
  Add parameter has two parameter values: true and false. Meaning that specifies whether the picture is changed to blur. Direction parameter used to set the direction of the blur. A blurring effect is clockwise. Where 0 degrees represents a vertical direction, one unit every 45 degrees, the default value is 270 degrees to the left. Angular direction corresponding relationship table below:

 401E109BDE8593E44740500A09934118.gif

  Strength parameter values can only be specified using an integer that represents the number of pixels in width will be blurred affected. The default value is 5 pixels.
  Or to see an example of it.
 CSS filter: Properties Chroma
Chroma property of an object may be provided in the specified color transparent color, its expression is as follows:
 the Filter: Chroma (Color = Color)
expression of this property is not very simple, it is only one parameter. Simply specify that you want to set up a transparent color with the Color parameter on it. This figure such as the following:
the CSS Filter: DropShadow properties
DropShadow object attribute is added to the shadow effect. It looks like the effect of the realization of the original object leaving the page, and then displays the projection of the object on the page. Take a look at its expression:

  Filter:DropShadow(Color=color,Offx=Offx,Offy=offy,
            Positive=positive)

  This property is a total of four parameters: Color represents the color cast shadows. Offx offy and X are offset shadow and Y directions. The offset must be set with an integer value. If set to a positive integer representing the right direction and the downward direction of the Y-axis X-axis. The opposite set to a negative integer.
  Positive values of two parameters: True establish any visible non-projection transparent pixel, False establish visible projection transparent pixel portion.
Flip is flip CSS filter properties, FlipH represents the horizontal flip, FlipV represents the vertical flip. Their expression is very simple, namely:
the Filter: FlipH
the Filter: FlipV
the CSS filter: Glow properties
when using "Glow" attribute of an object, the edge of the object will produce a similar effect of light. Its expression is as follows:
the Filter: Glow (Color = Color, Strength = strength)
parameter Glow only two properties: Color specified emission color, emission intensity specified Strength parameter values from 1 to 255.

CSS filter: Invert properties
Invert property attributes of the object can be visualized all inverted, including color, saturation and brightness values.
Its expression is simple:
the Filter: Invert
CSS Filters: Shadow attribute
Shadow properties can create a projection of the object in the specified direction. It is this expression:
the Filter: Shadow (Color = Color, the Direction = direction)
Here, Shadow has two parameters: Color parameters are used to specify the color of the projection; the Direction parameter is used to specify the direction of projection.
CSS filter: Wave properties
Wave properties used to disrupt the object in a vertical corrugation pattern. Its expression is as follows:

  Filter: Wave (Add = True ( False), Freq = frequency, LightStrength = enhanced light efficiency,
      Phase Offset =, Strength = strength)

  We see the expression Wave property is quite complex, it is a total of five parameters. Add parameter has two parameters: True indicates the objects according to upset the corrugated pattern; False representatives without disturbing;
  Freq parameter ripple frequency generation means, i.e. to specify the total number of complete corrugations on the object needs to be generated. LightStrength function enables enhanced effect of ripples of the generated light. Parameter value may be from 0 to 100. Phase offset parameter is used to set the start of the sine wave. General this value is 0, it is a variable ranging from 0 to 100. This value represents the percentage of the wavelength shift amount at the start. For example the value 25, representative of a sine wave starting from the 90-degree direction (360 * 25%).
CSS Filter: Xray property
Xray X-ray is the meaning.
  Xray properties, by definition, the effect of such properties is produced so that the object appears to have a feeling of X-rays. Its expression is simple:
        the Filter: Xray
CSS filter: alpha property
alpha is set to transparency. First look at its expression format:

  filter:alpha(opacity=opcity,finishopacity=finishopacity,
  style=style,startX=startX,startY=startY,finishX=finishX,
  finishY=finishY)

  Wow, how so long. Yes ah, but these parameters have their own use.
  Opacity level representative of transparency, alternatively from 0 to 100,0 completely transparent and 100 is completely opaque. Style parameter specifies a characteristic shape of the transparent region. Wherein 0 represents uniform shape; represents linear; 2-radial; 3 rectangle.
  Finishopacity is an option to set the transparency of the end, so as to achieve a gradient effect, its value is from 0 to 100. StartX and began to coordinate on behalf of StartY transparent gradient effect of the end coordinates finishX and finishY representatives of transparency gradient.

Reproduced in: https: //www.cnblogs.com/zhangchenliang/archive/2007/06/11/779832.html

Guess you like

Origin blog.csdn.net/weixin_34206899/article/details/93495944