css div 字符串,css3 Spring String

css

body {

background-color: #009688;

}

.wrapper {

position: absolute;

top: 50%;

left: 50%;

width: 200px;

height: 200px;

margin-top: -100px;

margin-left: -100px;

transform-style: perserve-3d;

animation: wrapper 12s cubic-bezier(1,.01,.50,.90) infinite;

perspective: 300px;

}

@keyframes wrapper {

0% {

transform: rotateZ(0deg);

}

100% {

transform: rotateZ(360deg);

}

}

.square {

position: absolute;

top: 50%;

left: 50%;

width: 20px;

height: 20px;

margin: -10px 0 0 -10px;

border: 1px dashed #1e3f57;

transform: rotateX(0) translateZ(50px);

animation: dotted 3s cubic-bezier(1,.05,.4,.9) infinite;

}

.square:nth-child(2) { width: 40px; height: 40px; margin: -20px 0 0 -20px; animation-delay: 100ms; }

.square:nth-child(3) { width: 60px; height: 60px; margin: -30px 0 0 -30px; animation-delay: 200ms; }

.square:nth-child(4) { width: 80px; height: 80px; margin: -40px 0 0 -40px; animation-delay: 300ms; }

.square:nth-child(5) { width: 100px; height: 100px; margin: -50px 0 0 -50px; animation-delay: 400ms; }

.square:nth-child(6) { width: 120px; height: 120px; margin: -60px 0 0 -60px; animation-delay: 500ms; }

.square:nth-child(7) { width: 140px; height: 140px; margin: -70px 0 0 -70px; animation-delay: 600ms; }

.square:nth-child(8) { width: 160px; height: 160px; margin: -80px 0 0 -80px; animation-delay: 700ms; }

.square:nth-child(9) { width: 180px; height: 180px; margin: -90px 0 0 -90px; animation-delay: 800ms; }

.square:nth-child(10) { width: 200px; height: 200px; margin: -100px 0 0 -100px; animation-delay: 900ms; }

.square:nth-child(11) { width: 220px; height: 220px; margin: -110px 0 0 -110px; animation-delay: 1000ms; }

@keyframes dotted {

0% {

transform: rotateX(0) translateZ(90px);

border: 1px dotted #A7FFEB;

}

50% {

transform: rotateX(10deg) translateZ(0px) translateY(60px);

border: 1.5px dotted #004D40;

/* border-radius: 50%; */

}

100% {

transform: rotateX(360deg) translateZ(90px);

border: 1px dotted #A7FFEB;

}

}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值