CSS Filter Property Syntax Introduction _ Basic Tutorial

Source: Internet
Author: User
CSS Filters
Style Property:
Can be applied in the label, more widely used in

And so on the label,
More importantly, it can be used in labels.
Page Transition effect:
Add "" to the front and the top of the page
Description: Duration for the length of the page switch, 3.000 for 3 seconds, generally can directly lose
In 3, transition is the switch effect, from 1-23 a total of 22 different switching effects, of which 23
As a random effect.
Filter Effect:
Photoshop filters with a lot of it, in the page also use filters to engage in new ideas!
Syntax: style= "Filter:filtername (Fparameter1,fparameter2 ...)}
(FilterName is the filter's name, Fparameter1, Fparameter2, etc. are the parameters of the filter)
Filter Description:
Alpha: Sets the transparency level.
Blur: Creates a high-speed motion effect, which is a blur effect.
Chroma: Make special color transparent.
DropShadow: Creates a fixed shadow of an object.
FLIPH: Create a horizontally mirrored picture.
FLIPV: Create a vertical mirror image.
Glow: Gaguang is outside the edges of nearby objects.
Gray: Grayscale the picture.
Invert: Inverse color.
Light: Creates lights on the object.
Mask: Creates a transparent mask on the object.
Shadow: Creates an offset fixed shadow.
Wave: ripple effect.
Xray: Causes the object to become as if it were irradiated by an X-ray.
1. Filter: Alpha
Grammar:
Style= "Filter:alpha (Opacity=opacity,finishopacity=finishopacity,style=style,
Startx=startx,starty=starty,finishx=finishx,finishy=finishy) "
Description
Opacity: The starting value, the value is 0-100,0 is transparent, 100 is the original.
Finishopacity: Target value.
Style:1 or 2 or 3
StartX: Any value
Starty: Any value
Example: Filter:alpha (opacity= "0", finishopacity= "Max", style= "2")
2. Filter: Blur
Grammar:
Style= "Filter:blur (Add=add,direction=direction,
Strength=strength) "
Description
ADD: typically 1, or 0.
Direction: Angle, 0-315 degrees, step is 45 degrees.
Strength: The effect increases the value, generally 5 can.
Example: Filter:blur (add= "1", direction= ", strength=" 5 ")
3. Filter: Chroma
Grammar:
Style= "Filter:chroma (Color=color)"
Description
Color: #rrggbb格式, arbitrary.
Example: Filter:chroma (color= "#FFFFFF")
4. Filter: DropShadow
Grammar:
Style= "Filter:dropshadow (color=color,offx=offx,offy=offy,positive=positive)"
Description
Color: #rrggbb格式, arbitrary.
Offx:x axis deviation value.
Offy:y axis deviation value.
Positive:1 or 0.
Example: Filter:dropshadow (color= "#6699CC", offx= "5", offy= "5",
Positive= "1")
5. Filter: Fliph
Grammar:
Style= "Filter:fliph"
Example: Filter:fliph
6. Filter: FLIPV
Grammar:
Style= "FILTER:FLIPV"
Example: FILTER:FLIPV
7. Filter: Glow
Grammar:
Style= "Filter:glow (color=color,strength=strength)"
Description
Color: Glow Color.
Strength: Strength (0-100)
Example: Filter:glow (color= "#6699CC", strength= "5")
8 Filter: Gray
Grammar:
Style= "Filter:gray"
Example: Filter:gray
9. Filter: Invert
Grammar:
Style= "Filter:invert"
Example: Filter:invert
10. Filter: Mask
Grammar:
Style= "Filter:mask (Color=color)"
Example: Filter:mask (color= "#FFFFE0")
11. Filter: Shadow
Grammar:
Filter:shadow (color=color,direction=direction)
Description
Color: #rrggbb格式.
Direction: Angle, 0-315 degrees, step is 45 degrees.
Example: Filter:shadow (color= "#6699CC", direction= "135")
12. Filter: Wave
Grammar:
Filter:wave (Add=add,freq=freq,lightstrength=strength,phase=phase,
Strength=strength)
Description
ADD: typically 1, or 0.
Freq: deform value.
Lightstrength: Percent of deform.
Phase: Percentage of angular distortion.
Strength: Deformation strength.
Example: Filter:wave (add= "0", phase= "4", freq= "5", lightstrength= "5", strength= "2")
13. Filter: Xray
Grammar:
Style= "Filter:xray"
Example: Filter:xray
  • 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.