css3波,CSS3 声波

CSS

语言:

CSSSCSS

确定

#sample {} body {

background: #000;

top: 0;

left: 0;

padding: 0;

margin: 0;

}

.loader-container {

position: relative;

height: 40px;

width: 160px;

margin: 200px auto 0;

}

.loader-container > div {

position: relative;

display: inline-block;

background: #03A9F4;

height: 100%;

width: 10px;

margin: 0;

-webkit-animation: load 3s ease-in-out infinite;

animation: load 3s ease-in-out infinite;

}

.loader-container .rectangle-2 {

-webkit-animation-delay: 0.1s;

animation-delay: 0.1s;

}

.loader-container .rectangle-3 {

-webkit-animation-delay: 0.2s;

animation-delay: 0.2s;

}

.loader-container .rectangle-4 {

-webkit-animation-delay: 0.3s;

animation-delay: 0.3s;

}

.loader-container .rectangle-5 {

-webkit-animation-delay: 0.4s;

animation-delay: 0.4s;

}

.loader-container .rectangle-6 {

-webkit-animation-delay: 0.5s;

animation-delay: 0.5s;

}

@-moz-keyframes load {

0%, 100% {

-moz-transform: scaleY(1);

background: #03A9F4;

}

16.67% {

-moz-transform: scaleY(3);

background: #FF5722;

}

33.33% {

-moz-transform: scaleY(1);

background: #FF5252;

}

50% {

-moz-transform: scaleY(3);

background: #E91E63;

}

66.67% {

-moz-transform: scaleY(1);

background: #9C27B0;

}

83.34% {

-moz-transform: scaleY(3);

background: #673AB7;

}

}

@-webkit-keyframes load {

0%, 100% {

-webkit-transform: scaleY(1);

background: #03A9F4;

}

16.67% {

-webkit-transform: scaleY(3);

background: #FF5722;

}

33.33% {

-webkit-transform: scaleY(1);

background: #FF5252;

}

50% {

-webkit-transform: scaleY(3);

background: #E91E63;

}

66.67% {

-webkit-transform: scaleY(1);

background: #9C27B0;

}

83.34% {

-webkit-transform: scaleY(3);

background: #673AB7;

}

}

@keyframes load {

0%, 100% {

transform: scaleY(1);

background: #03A9F4;

}

16.67% {

transform: scaleY(3);

background: #FF5722;

}

33.33% {

transform: scaleY(1);

background: #FF5252;

}

50% {

transform: scaleY(3);

background: #E91E63;

}

66.67% {

transform: scaleY(1);

background: #9C27B0;

}

83.34% {

transform: scaleY(3);

background: #673AB7;

}

}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值