CSS filter

xiaoxiao2021-03-06  97

Author: http: //www.swtv.com.cn/adjunct/nr/css/css.htmAlpha transparent layers: filter effects Syntax: STYLE = "filter: filtername (parameter1, parameter2, parameter3 ...)" where: Filtername is the name of the filter; Parameter1, Parameter2, etc. is the parameter of the filter. Filter name and function description:

Set transparent hierarchy

Syntax: style = "filter: alpha (opacity = Opacity, finishopacity = finishopacity, style = style, starx = starx, stary = stary, finishx = finishx, finishy = finishy)" Where: opacity is the start value, the value is 0 -100, 0 is transparent, 100 is original; Finishopacity is a target value; with a value of 0-3; StarX or Stary is arbitrary. The example is as follows:

Finishopacity = 100 parameter style = 3Style = 2Style = 1Style = 0opacity = 100 Set transparent hierarchical setting transparent hierarchical setting transparent hierarchical setting transparent hierarchy Opacity = 50 Setting transparent hierarchical setting transparent hierarchical Opacity = 20 Setting transparent hierarchical setting transparent Level Set Transparent Level Set Transparent Level Opacity = 0 Setting Transparent Level Set Transparent Hierarchy Set Transparent Hierarchy Setting Transparent Level

Finishopacity = 50 parameter style = 3Style = 2Style = 1Style = 0opacity = 100 Set transparent hierarchical setting transparent hierarchical setting transparent hierarchical setting transparent hierarchy Opacity = 50 Setting transparent hierarchy setting transparent hierarchical Opacity = 20 Setting transparent hierarchical setting transparent Level Set Transparent Level Set Transparent Level Opacity = 0 Setting Transparent Level Set Transparent Hierarchy Set Transparent Hierarchy Setting Transparent Level

Finishopacity = 20 parameter style = 3Style = 2Style = 1Style = 0opacity = 100 Set transparent hierarchical setting transparent hierarchical setting transparent hierarchical setting transparent hierarchy Opacity = 50 Setting transparent hierarchy setting transparent hierarchy Opacity = 20 Setting transparent hierarchical setting transparent Level Set Transparent Level Set Transparent Level Opacity = 0 Setting Transparent Level Set Transparent Hierarchy Set Transparent Hierarchy Setting Transparent Level

Finishopacity = 0 parameter style = 3Style = 2Style = 1Style = 0opacity = 100 Set transparent hierarchical setting transparent hierarchical set transparent hierarchical setting transparent hierarchical Opacity = 50 Setting transparent hierarchy setting transparent hierarchical Opacity = 20 Setting transparent hierarchical setting transparent Level Set Transparent Level Set Transparent Level Opacity = 0 Setting Transparent Level Set Transparent Hierarchy Set Transparent Hierarchy Setting Transparent Level

BLUR Create a high-speed moving effect, both fuzzy effect

Syntax: style = "filter: bl (add = add, direction = direction, strongth = strength)" Where: add is retained, with a value of 0 or 1; Direction is a moving angle value, with a value of 0-315 degrees 45 degrees, step length; STRENGTH effect length value, generally take 5. For example, as follows:

Direction = 0strength = 0strength = 5strength = 10strength = 20strength = 50strength = 20strength = 50strength = 100ADD = 0 mobile effect mobile effect mobile effect mobile effect mobile effect mobile effect add = 1 mobile effect mobile effect mobile effect mobile effect mobile effect mobile effect Direction = 90stregth = 0streamth = 5STRENGTH = 10STRENGTH = 20STRENGTH = 50STRENGTH = 100ADD = 0 mobile effect mobile effect mobile effect mobile effect mobile effect mobile effect add = 1 mobile effect mobile effect mobile effect mobile effect mobile effect mobile effect)

Method using blur.css

1. First enter the following in the text editor: Content annotation (no need to enter) BLUR {font-family: "COMIC SANS MS"; Color: # fff00; define font color. The font is yellow. Line-height: 19pt; definition line high filter: blu (add = 1, direction = 45, strongth = 5) Filter content is only one line. The high speed movement is defined here. Font-size: large; defines the font size. Here is a big font. Font-weight: bold; define the weight of the font. Here is a bold. Widt: auto; position: relative; PADDING: 3PT;

2, save: with blur.css storage.

3, modify the HTML file that needs to reference the file: Plus in in the home page: in the home page Plus:

High speed mobile effect or High speed movement results are: high speed mobile effect

Chroma makes some color transparent:

Chroma make special color transparent chroma production special color transparent

Syntax: style = "filter: chroma (color = color)" Where: color = # rggbb, arbitrary. Example: Style = "Filter: chroma (color = # fff00)" Let the yellow transparent.

DROPSHADOW Create a fixed shadow

Syntax: style = "filter: Dropshadow (color = color, offx = offx, offy = offy, posient = posient") "Where: color = # rggb, arbitrary; OFFX or OFFY is the deviation value of X or Y axis; Positive take The value is 0 or 1. For example, as follows:

Positive = 0offy = -10offy = -5offy = 0offy = 5offy = 10offy = 15OffX = -10 fixed shadow fixing shadow fixing shadow fix shadow fix shadow fixing shadow OFFX = -5 fixed shadow fixing shadow fix shadow fixing shadow fixing shadow fixing shadow OFFX = 0 fixed shadow fixing shadow fixing shadow fix shadow fixing shadow = 5 fixed shadow fixing shadow fixed shadow fixed shadow fixing shadow fixed shadow OFFX = 10 fixed shadow fixing shadow fixed shadow fixed shadow fixing shadow fixing shadow = 15 fixed shadow fix shadow Fixed shadow positive shadow = 1offy = -10offy = -5offy = 0offy = 5offy = 10offy = 15offx = -10 fixed shadow fixed shadow fix shadow fixing shadow fix shadow fixing shadow = -5 fixed shadow fix shadow fixing shadow Fixed shadding shadow fixing shadow fix = 0 fixed shadow fixing shadow fix shadow = 5 fixed shadow fixing shadow = 5 fixed shadow fixing shadow fixing shadow fixed shadow fixing shadow fixing shadow = 10 fixed shadow fixing shadow fixing shadow fixing shadow fixed shadow fixing shadow Shadow OFFX = 15 Fixed Shadow Fixed Shadow Fixed Shadow Fixed Shadow

Method using DROPSHADOW.CSS

1. First enter the following in the text editor: Content annotation (no need to enter) DROPSHADOW {Font-Family: "COMIC SANS MS"; Color: # fff00; define font color. The font is yellow. Line-height: 19pt; definition line high filter: Dropshadow (color = # 6699cc, offx = 5, OFFY = 5, POSTIVE = 1) The filter content is only one line. Here is a fixed shadow. Font-size: large; defines the font size. Here is a big font. Font-weight: bold; define the weight of the font. Here is a bold. Width: Auto; Height: Auto; Position: Relative; Padding: 3pt;} 2, Store: Use the dropshadow.css save. 3, modification needs to reference the HTML file of the file: Plus in : on the homepage Plus:

Fixed Shadow or fixed shadow The result is: fixed shadow

FLIPH Create Horizontal Mirror Picture FLIPH Create Horizontal Mirror Picture Syntax: Style = "Filter: Fliph" example: style = "filter: fliph"

The figure after the original picture

FLIPV Create a vertical mirror image FLIPV Create a vertical mirror picture

Syntax: style = "filter: flipv" example: style = "filter: flipv"

The figure after the original picture

Glow plus light in the outer edge of the object

Syntax: style = "filter: glow (color = color, strgyth = strength)" Where: color = # rggbb, luminous color, arbitrary; Strength is the luminous intensity, with a value of 0-100. Examples are as follows: strENGTH = 0strength = 5stregth = 10strength = 20strength = 50streamth = 100 glorious glorious light glory

Method using glow.css

1. First enter the following in the text editor: Content annotation (no need to enter) Glow {font-family: "COMIC SANS MS"; Color: # fff00; define font color. The font is yellow. Line-height: 19pt; definition line high filter: Glow (color = # ff0000, strongth = 4) Filter content is only one line. The bright color is red here, and the luminous intensity is 4. Font-size: large; defines the font size. Here is a big font. Font-weight: bold; define the weight of the font. Here is a bold. Widt: auto; position: relative; PADDING: 3PT;

2, save: with a glow.css storage.

3. Modify the HTML file that needs to reference the file: Plus in in the home page: in the home page Plus:

Outer edge of the object plus bright or Outside the outer edge of the object, Goblin results are: Ganghui in the outer edge of the object

Gray puts pictures / text grayscale gray

Syntax: style = "filter: gray" example: style = "filter: gray" using gray.css method

1. First enter the following in the text editor: Content annotation (no need to enter) Gray {font-family: "COMIC SANS MS"; Color: # fff00; define font color. The font is yellow. Line-height: 19pt; Defining Row High Filter: Gray Filter Content This is only one line. The grayscale is defined here. Font-size: large; defines the font size. Here is a big font. Font-weight: bold; define the weight of the font. Here is a bold. Width: auto; height: Auto; Position: Relative; Padding: 3pt;} 2, store: with a gray.css store. 3, modify the HTML file that needs to reference the file: Plus in in the homepage: in the home page Plus:

or < Tr>
Picture / text grayscation or or Picture / text grayscation : after processing before processing

Invert anti-color invert

Syntax: style = "filter: invert" example: style = "filter: invert"

Method for using Invert.css

1. First enter the following in the text editor: Content annotation (no need to enter) Invert {font-family: "COMIC SANS MS"; Color: # fff00; define font color. The font is yellow. Line-height: 19pt; Defining Row High Filter: Invert Filter This is only one line. It defines the contrast. Font-size: large; defines the font size. Here is a big font. Font-weight: bold; define the weight of the font. Here is a bold. Widt: auto; position: relative; PADDING: 3PT;

2, save: use invert.css storage.

3. Modify the HTML file that needs to reference the file: Plus in in the home page: in the homepage Plus:

or < Tr>
Anti-color or anti-color < / span> The result is: after processing before processing

Mask creates a transparent mask to create a transparent mask on an object on an object?

Syntax: style = "filter: mask (color = color)" Where: color = # rggbb, arbitrary. Example: Style = "Filter: Mask (color = # fffe0)"

Method using Mask.css

1. First enter the following in the text editor: Content annotation (no need to enter) Mask {font-family: "COMIC SANS MS"; color: # fff00; define font color. The font is yellow. Line-height: 19pt; Define line high filter: Mask (color = # fffe0) filter content only one line. The transparent mask is defined here. Font-size: large; defines the font size. Here is a big font. Font-weight: bold; define the weight of the font. Here is a bold. Widt: auto; position: relative; PADDING: 3PT;

2, save: with the Mask.css store.

3, modification needs to reference the HTML file of the file: Plus: in the homepage Plus:

Transparent mask or transparent Mask or The result is:

After the change changes

Shadow creates offset fixing shadow

Syntax: style = "filter: shadow (color = color, direction = direction") "Where: color = # rggbb, arbitrary; Direction is angular value, with a value of 0-315 degrees, and the step size is 45 degrees. For example, the following: Direction = 45 fixed shadow Direction = 315 fixed shadow

Method for using shadow.css

1. First enter the following in the text editor: Content annotation (no need to enter) Shadow {font-family: "COMIC SANS MS"; Color: # 00ff00; define font color. The font is green. Line-height: 19pt; definition line High Filter: Shadow (color = # 6699cc, direction = 135) The filter content is only one line. Here is a fixed shadow. Font-size: large; defines the font size. Here is a big font. Font-weight: bold; define the weight of the font. Here is a bold. Widt: auto; position: relative; PADDING: 3PT;

2, save: with shadow.css storage.

3, modify the HTML file that needs to reference the file: Plus in in the home page: in the home page Plus:

fixed shadow or fixed shadow The result is: fixed shadow

Wave creates corrugated effects

Syntax: style = "filter: Wave (add = add, freq = freq, lightstreamth = lightth, phase = phase, strongth = strength") "Where: ADD value is 0 or 1; freq deformation value; LightstRength deformation percentage; Phase angle Deformation percentage; Strength deformation strength. Examples are as follows: percentage of deformation

Strength = 2Freq = 5Phase = no LightStrength = 0LightStrength = 5LightStrength = 10LightStrength = 20LightStrength = 50LightStrength = 100Add = 0 ripple effect ripple effect ripple effect ripple effect ripple effect ripple effect Add = 1 ripple effect ripple effect ripple effect ripple effect ripple effect ripple effect

Angle deformation percentage comparison

Stregth = 2FREQ = 5LightStrength = no Phase = 0Phase = 5Phase = 10Phase = 20phase = 50phase = 100ADD = 0 corrugated effect corrugated effect corrugated effect corrugated effect corrugated effect corrugated effect Add = 1 corrugated effect corrugated effect corrugated effect corrugated effect corrugated effect corrugated effect

Deformation intensity contrast

Freq = 5LightStrength = 5Phase = 4Strength = 0Strength = 5Strength = 10Strength = 20Strength = 50Strength = 100Add = 0 ripple effect ripple effect ripple effect ripple effect ripple effect ripple effect Add = 1 ripple effect ripple effect ripple effect ripple effect ripple effect ripple effect modification value Compared

Lightstregth = 5PHASE = 4strength = 2FREQ = 0FREQ = 5FREQ = 10FREQ = 20FREQ = 50FREQ = 100ADD = 0 corrugated effect corrugated effect corrugated effect corrugated effect corrugated effect corrugated effect ADD = 1 corrugated effect corrugated effect corrugated effect corrugated effect corrugated effect corrugated effect

How to use Wave.css

1. First enter the following in the text editor: Content annotation (no need to enter) Wave {font-family: "COMIC SANS MS"; color: # fff00; define font color. The font is yellow. Line-height: 19pt; definition line high filter: Wave (add = 0, freq = 5, lightstRength = 5, Phase = 4, strongth = 2) Filter content is only one line. Font-size: large; defines the font size. Here is a big font. Font-weight: bold; define the weight of the font. Here is a bold. Width: auto; height: auto; Position: Relative; Padding: 3pt;} 2, store: Wave.css store. 3. Modify the HTML file that needs to reference the file: Plus in in the homepage: in the homepage Plus:

Ripple Effect or corrugated effect or The result is:

After the change changes

XRAY makes an object like X-rays like X-rays like X-rays.

Syntax: style = "filter: xray" example: style = "filter: xray"

Method using xray.css

1. First enter the following in the text editor: Content annotation (no need to enter) xray {font-family: "COMIC SANS MS"; color: # fff00; define font color. The font is yellow. Line-height: 19pt; define line high filter: XRAY filter content only one line. The X-ray is defined here. Font-size: large; defines the font size. Here is a big font. Font-weight: bold; define the weight of the font. Here is a bold. Widt: auto; position: relative; PADDING: 3PT;

2, save: with xray.css storage.

3, modify the HTML file that needs to reference the file: Plus in in the homepage: in the home page Plus:

X-rays or The result is: after the change changes

转载请注明原文地址:https://www.9cbs.com/read-96567.html

New Post(0)
CopyRight © 2020 All Rights Reserved
Processed: 0.041, SQL: 9