css3 滤镜 混合模式 background-blend-mode mix-blend-mode
http://www.zhangxinxu.com/wordpress/2015/05/css3-mix-blend-mode-background-blend-mode/
mix-blend-mode
background-blend-mode
mix-blend-mode: normal; //正常
mix-blend-mode: multiply; //正片叠底
mix-blend-mode: screen; //滤色
mix-blend-mode: overlay; //叠加
mix-blend-mode: darken; //变暗
mix-blend-mode: lighten; //变亮
mix-blend-mode: color-dodge; //颜色减淡
mix-blend-mode: color-burn; //颜色加深
mix-blend-mode: hard-light; //强光
mix-blend-mode: soft-light; //柔光
mix-blend-mode: difference; //差值
mix-blend-mode: exclusion; //排除
mix-blend-mode: hue; //色相
mix-blend-mode: saturation; //饱和度
mix-blend-mode: color; //颜色
mix-blend-mode: luminosity; //亮度
mix-blend-mode: initial; //初始
mix-blend-mode: inherit; //继承
mix-blend-mode: unset; //复原
需要注意的是,只能是background属性中的背景图片和颜色混合,而且只能在一个background属性中。
CSS3 backgrounds多背景IE9+浏览器就开始支持了。因此,你想混合多图,就是要逗号,一个一个写在background
属性中就可以了,例如本Demo的两个妹子:
.box { background: url(mm1.jpg) no-repeat center, url(mm2.jpg) no-repeat center; }
.warp-bj{ background-image: url(../images/bj.jpg), url(../images/hy01.png); background-repeat: no-repeat; width: 720px; height: 1280px; -webkit-background-blend-mode: screen; -webkit-animation:bjAnimation 7500ms linear 500ms infinite alternate; background-blend-mode: screen; animation:bjAnimation 7500ms linear 500ms infinite alternate; } @-webkit-keyframes bjAnimation { 6% {background-image: url(../images/bj.jpg),url(../images/hy02.png)} 12% {background-image: url(../images/bj.jpg),url(../images/hy03.png)} 18% {background-image: url(../images/bj.jpg),url(../images/hy04.png)} 24% {background-image: url(../images/bj.jpg),url(../images/hy05.png)} 31% {background-image: url(../images/bj.jpg),url(../images/hy06.png)} 37% {background-image: url(../images/bj.jpg),url(../images/hy07.png)} 43% {background-image: url(../images/bj.jpg),url(../images/hy08.png)} 50% {background-image: url(../images/bj.jpg),url(../images/hy09.png)} 57% {background-image: url(../images/bj.jpg),url(../images/hy10.png)} 65% {background-image: url(../images/bj.jpg),url(../images/hy11.png)} 72% {background-image: url(../images/bj.jpg),url(../images/hy12.png)} 79% {background-image: url(../images/bj.jpg),url(../images/hy13.png)} 86% {background-image: url(../images/bj.jpg),url(../images/hy14.png)} 93% {background-image: url(../images/bj.jpg),url(../images/hy15.png)} 100% {background-image: url(../images/bj.jpg),url(../images/hy01.png)} }
转载于:https://www.cnblogs.com/shimily/articles/4891527.html