CSS3 Fliter 10 kinds of special effects (ii)

Source: Internet
Author: User
First, Drop-shadow shadow

Add a shadow effect to the picture, as shown in:

Code:

#gray {
-webkit-filter:drop-shadow (5px 5px 5px Green);

}

Second, Blur Fuzzy

Add a blur effect to the image to change the sharpness of the image, as shown in:

Code:

#gray {
-webkit-filter:blur (5px);

}

Third, contrast contrast ratio

Change the contrast of the picture, as shown in the effect:

Code:

#gray {
-webkit-filter:contrast (2);

}

Four, brightness brightness

Change the brightness of the picture, as shown in the effect:

Code:

Lighten

#gray {
-webkit-filter:brightness (2);

}

Darken

#gray {
-webkit-filter:brightness (0.5);

}

* When the value of brightness is less than or equal to 0 o'clock, the picture becomes black.

V. transparency of opacity

Change the transparency of the image, as shown in the effect:

Code:

#gray {
-webkit-filter:opacity (0.5);

}

CSS3 Fliter 10 kinds of special effects (ii)

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.