CSS3 Fliter 10 Special effects (i)

Source: Internet
Author: User

First, grayscale grayscale

With this effect, the image will be grayed out, and if you do not have any parameter values in grayscale (), it will be rendered with the default value of "100%". The effect is as follows:

Code:

#gray {
-webkit-filter:grayscale (1);
}

If you set the parameter value in grayscale (), it will change from color to black and white, as follows:

Code:

#gray {
-webkit-filter:grayscale (0.5);
}

second, Sepia brown, Brown

Use this special effect, make the picture overall tan, usually can make the picture a kind of nostalgic feeling. As follows:

Code:

#gray {
-webkit-filter:sepia (1);
}

If you set the parameter value in sepia (), it will change from colored to tan, as follows:

Code:

#gray {
-webkit-filter:sepia (0.7);
}

third, thesaturation of saturate

Using this effect will change the saturation of the image, as shown in the effect:

Code:

#gray {
-webkit-filter:saturate (5);
}

Four, hue-rotate hue rotation

hue-rotate used to change the hue of a picture the effect is as follows:

Code:

#gray {
-webkit-filter:hue-rotate (80DEG);
}

Five, Invert Inverse Color

Invert The effect is like the effect of our camera negatives, the effect is as follows:

Code:

#gray {
-webkit-filter:invert (1);
}

Change the saturation of a picture

CSS3 Fliter 10 Special effects (i)

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.