A detailed introduction to the filter attribute of CSS3
Today I will give you a detailed explanation of the attribute of the filter in CSS3. It is very powerful and can perform similar operations on the pictures of the web page. Image processing effects on PS. We can manipulate CSS to process images.
Browser support: Only IE browser does not support the filter attribute. In order to be compatible with lower versions of Safari and Google browsers, the prefix -webkit-## is required.
rightness brightness (value is num)
filter:brightness(2); -webkit-filter:brightness(2);0 It means that the brightness is 0 and the display is black, 0.5 means the brightness is half of the original image, 1 means the brightness of the original image, and the value greater than 1 means the brightness is enhanced. contrast contrast (value is num)filter:contrast(1.8); -webkit-filter:contrast(1.8);0 means the contrast is 0, which is a solid color , 0.5 means the contrast is half of the original image, 1 means the contrast of the original image, the value is greater than 1, the larger the value, the stronger the contrast. blur blur (value is length)filter:blur(5px); -webkit-filter:blur(5px);Represents the pixel value of the degree of blur. drop-shadow shadowfilter:drop-shadow(0 0 10px #000); -webkit-filter:drop-shadow(0 0 10px #000);Same as css3 box-shadow attribute value. Multiple attribute values can be written together, separated by spaces, similar to transform multi-attribute writing method
How to use CSS to create image rotation effects
Solution to the problem that the background color cannot be displayed in HTML
How to optimize HTML web pages
The above is the detailed content of A detailed introduction to the filter attribute of CSS3. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



How to achieve wave effect with pure CSS3? This article will introduce to you how to use SVG and CSS animation to create wave effects. I hope it will be helpful to you!

This article will show you how to use CSS to easily realize various weird-shaped buttons that appear frequently. I hope it will be helpful to you!

Two methods: 1. Using the display attribute, just add the "display:none;" style to the element. 2. Use the position and top attributes to set the absolute positioning of the element to hide the element. Just add the "position:absolute;top:-9999px;" style to the element.

In CSS, you can use the border-image attribute to achieve a lace border. The border-image attribute can use images to create borders, that is, add a background image to the border. You only need to specify the background image as a lace style; the syntax "border-image: url (image path) offsets the image border width inward. Whether outset is repeated;".

Implementation method: 1. Use the ":active" selector to select the state of the mouse click on the picture; 2. Use the transform attribute and scale() function to achieve the picture magnification effect, the syntax "img:active {transform: scale(x-axis magnification, y Axis magnification);}".

How to create text carousel and image carousel? The first thing everyone thinks of is whether to use js. In fact, text carousel and image carousel can also be realized using pure CSS. Let’s take a look at the implementation method. I hope it will be helpful to everyone!
![How to solve the '[Vue warn]: Failed to resolve filter' error](https://img.php.cn/upload/article/000/887/227/169243040583797.jpg?x-oss-process=image/resize,m_fill,h_207,w_330)
Methods to solve the "[Vuewarn]:Failedtoresolvefilter" error During the development process using Vue, we sometimes encounter an error message: "[Vuewarn]:Failedtoresolvefilter". This error message usually occurs when we use an undefined filter in the template. This article explains how to resolve this error and gives corresponding code examples. When we are in Vue

In CSS3, you can use the "animation-timing-function" attribute to set the animation rotation speed. This attribute is used to specify how the animation will complete a cycle and set the speed curve of the animation. The syntax is "element {animation-timing-function: speed attribute value;}".
