过滤器css器,CSS3 过滤器(filter)实验

CSS

语言:

CSSSCSS

确定

html, body {

height: 100%;

overflow: hidden; }

input {

position: absolute;

z-index: 10;

margin: 1em; }

body {

position: relative; }

.scene {

height: 100%;

background-color: #555; }

input:checked + .scene {

-webkit-filter: contrast(100) invert(0); }

@-webkit-keyframes opacity {

50% {

opacity: 0.5; } }

@keyframes opacity {

50% {

opacity: 0.5; } }

.water {

position: absolute;

top: 0%;

left: 0;

right: 0;

bottom: 0;

background: #36c;

background-color: #556;

background-image: -webkit-linear-gradient(60deg, #445 12%, transparent 12.5%, transparent 87%, #445 87.5%, #445), -webkit-linear-gradient(300deg, #445 12%, transparent 12.5%, transparent 87%, #445 87.5%, #445), -webkit-linear-gradient(60deg, #445 12%, transparent 12.5%, transparent 87%, #445 87.5%, #445), -webkit-linear-gradient(300deg, #445 12%, transparent 12.5%, transparent 87%, #445 87.5%, #445), -webkit-linear-gradient(30deg, #99a 25%, transparent 25.5%, transparent 75%, #99a 75%, #99a), -webkit-linear-gradient(30deg, #99a 25%, transparent 25.5%, transparent 75%, #99a 75%, #99a);

background-image: linear-gradient(30deg, #445 12%, transparent 12.5%, transparent 87%, #445 87.5%, #445), linear-gradient(150deg, #445 12%, transparent 12.5%, transparent 87%, #445 87.5%, #445), linear-gradient(30deg, #445 12%, transparent 12.5%, transparent 87%, #445 87.5%, #445), linear-gradient(150deg, #445 12%, transparent 12.5%, transparent 87%, #445 87.5%, #445), linear-gradient(60deg, #99a 25%, transparent 25.5%, transparent 75%, #99a 75%, #99a), linear-gradient(60deg, #99a 25%, transparent 25.5%, transparent 75%, #99a 75%, #99a);

background-size: 80px 140px;

background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;

opacity: 0;

-webkit-animation: opacity 4s ease-in-out infinite alternate;

animation: opacity 4s ease-in-out infinite alternate; }

@-webkit-keyframes move {

50% {

left: 60%; } }

@keyframes move {

50% {

left: 60%; } }

.drop {

-webkit-filter: blur(60px);

background-color: #ffa6b6;

position: absolute;

top: 0;

left: -60%;

right: 0;

bottom: 0;

width: 15%;

height: 0;

padding-bottom: 15%;

border-radius: 50%;

margin: auto;

-webkit-animation: move 8s ease-in-out infinite alternate;

animation: move 8s ease-in-out infinite alternate; }

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值