CSS3 Filter Effects All In One
CSS3 Filter Effects All In One
image & PS effect
https://api-platform.com#COMPANIES
grayscale
/ 灰阶
https://developer.mozilla.org/en-US/docs/Web/CSS/filter-function/grayscale
.filter {
filter: grayscale(0);
filter: grayscale(0.20);
filter: grayscale(60%);
filter: grayscale(1);
}
CSS filter
https://developer.mozilla.org/en-US/docs/Web/CSS/filter
/* URL to SVG filter */
filter: url("filters.svg#filter-id");
/* <filter-function> values */
filter: blur(5px);
filter: brightness(0.4);
filter: contrast(200%);
filter: drop-shadow(16px 16px 20px blue);
filter: grayscale(50%);
filter: hue-rotate(90deg);
filter: invert(75%);
filter: opacity(25%);
filter: saturate(30%);
filter: sepia(60%);
/* Multiple filters */
filter: contrast(175%) brightness(3%);
/* Use no filter */
filter: none;
/* Global values */
filter: inherit;
filter: initial;
filter: unset;
demos
背景虚化 / 光晕特效
本文首发于博客园,作者:xgqfrms,原文链接:https://www.cnblogs.com/xgqfrms/p/9967596.html
未经授权禁止转载,违者必究!