Css3 filter attributes

Source: Internet
Author: User

The effects of css3 filter can be added to the HTML5 video tag or the image.

Some attributes of css3 filter are applied to JS:

$ ('{Video'}.css ("-WebKit-filter", "sepia (100% )");

Certificate ('your video'apps.css ("-WebKit-filter", "Blur (3px )");

Certificate ('{video'}.css ("-WebKit-filter", "grayscale (50% )");

Certificate ('{video'}.css ("-WebKit-filter", "brightness (2.5 )");

Certificate ('{video'}.css ("-WebKit-filter", "contrast (5 )");

Certificate ('your video'apps.css ("-WebKit-filter", "Hue-rotate (180deg )");

Certificate ('{video'{.css ("-WebKit-filter", "Invert (100% )");

Certificate ('{video'}.css ("-WebKit-filter", "grayscale (100%) brightness (100%) contrast (100% )");
// Saturate (0, 250%)
// Grayscale (100%) brightness (10%) contrast (100%) black and white

Certificate ('{video'}.css ("-WebKit-filter", "saturate (3 )");

In CSS, you can also directly write the ID or class and then: {-WebKit-filter: sepia (100% );}

If you want to remove the filter, you can use:

Certificate ('{video'}.css ("-WebKit-filter", "NONE ");

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.