html5圆圈动画效果,CSS3实现光感圆圈动画效果

CSS3实现光感圆圈动画效果全部代码

d0f6245c485e5e59de87e8aa886864f4.pnghtml>    

CSS3实现光感圆圈动画效果

body {

background: #111;

}

.halo {

transition: .4s all;

}

.halo.input {

width: 100px;

height: 100px;

}

.halo.input:before {

width: 100px;

height: 100px;

}

.ring-1 {

position: absolute;

left: 50%;

top: 50%;

transform: translate3d(-50%, -50%, 0);

border: 1px solid rgba(0, 255, 255, 0.3);

box-shadow: 0 0 20px rgba(0, 255, 255, 0.1), 0 0 50px rgba(0, 255, 255, 0.1), inset 0 0 20px rgba(0, 255, 255, 0.1), inset 0 0 50px rgba(0, 255, 255, 0.1);

border-radius: 100%;

width: 200px;

height: 200px;

-webkit-transform: scale(1);

-webkit-animation: rotate 3.5s infinite alternate-reverse;

}

.ring-1:before {

content: "";

position: absolute;

width: 200px;

height: 200px;

border-radius: 100%;

border: 1px solid rgba(0, 255, 255, 0.3);

box-shadow: 0 0 20px rgba(0, 255, 255, 0.1), 0 0 50px rgba(0, 255, 255, 0.1), inset 0 0 20px rgba(0, 255, 255, 0.1), inset 0 0 50px rgba(0, 255, 255, 0.1);

-webkit-animation: rotate 3.5s infinite alternate-reverse;

}

.ring-2 {

position: absolute;

left: 50%;

top: 50%;

transform: translate3d(-50%, -50%, 0);

border: 1px solid rgba(0, 255, 255, 0.3);

box-shadow: 0 0 20px rgba(0, 255, 255, 0.1), 0 0 50px rgba(0, 255, 255, 0.1), inset 0 0 20px rgba(0, 255, 255, 0.1), inset 0 0 50px rgba(0, 255, 255, 0.1);

border-radius: 100%;

width: 200px;

height: 200px;

-webkit-transform: scale(1);

-webkit-animation: rotate 2s infinite alternate;

}

.ring-2:before {

content: "";

position: absolute;

width: 200px;

height: 200px;

border-radius: 100%;

border: 1px solid rgba(0, 255, 255, 0.3);

box-shadow: 0 0 20px rgba(0, 255, 255, 0.1), 0 0 50px rgba(0, 255, 255, 0.1), inset 0 0 20px rgba(0, 255, 255, 0.1), inset 0 0 50px rgba(0, 255, 255, 0.1);

-webkit-animation: rotate 3.5s infinite alternate-reverse;

}

.ring-3 {

position: absolute;

left: 50%;

top: 50%;

transform: translate3d(-50%, -50%, 0);

border: 1px solid rgba(0, 255, 255, 0.3);

box-shadow: 0 0 20px rgba(0, 255, 255, 0.1), 0 0 50px rgba(0, 255, 255, 0.1), inset 0 0 20px rgba(0, 255, 255, 0.1), inset 0 0 50px rgba(0, 255, 255, 0.1);

border-radius: 100%;

width: 200px;

height: 200px;

-webkit-transform: scale(1);

-webkit-animation: rotate-2 4s infinite alternate;

}

.ring-3:before {

content: "";

position: absolute;

width: 200px;

height: 200px;

border-radius: 100%;

border: 1px solid rgba(0, 255, 255, 0.3);

box-shadow: 0 0 20px rgba(0, 255, 255, 0.1), 0 0 50px rgba(0, 255, 255, 0.1), inset 0 0 20px rgba(0, 255, 255, 0.1), inset 0 0 50px rgba(0, 255, 255, 0.1);

-webkit-animation: rotate 3.5s infinite alternate-reverse;

}

.ring-4 {

position: absolute;

left: 50%;

top: 50%;

transform: translate3d(-50%, -50%, 0);

border: 1px solid rgba(0, 255, 255, 0.3);

box-shadow: 0 0 20px rgba(0, 255, 255, 0.1), 0 0 50px rgba(0, 255, 255, 0.1), inset 0 0 20px rgba(0, 255, 255, 0.1), inset 0 0 50px rgba(0, 255, 255, 0.1);

border-radius: 100%;

width: 200px;

height: 200px;

-webkit-transform: scale(1);

-webkit-animation: rotate 7s infinite alternate-reverse;

}

.ring-4:before {

content: "";

position: absolute;

width: 200px;

height: 200px;

border-radius: 100%;

border: 1px solid rgba(0, 255, 255, 0.3);

box-shadow: 0 0 20px rgba(0, 255, 255, 0.1), 0 0 50px rgba(0, 255, 255, 0.1), inset 0 0 20px rgba(0, 255, 255, 0.1), inset 0 0 50px rgba(0, 255, 255, 0.1);

-webkit-animation: rotate 3.5s infinite alternate-reverse;

}

.ring-5 {

position: absolute;

left: 50%;

top: 50%;

transform: translate3d(-50%, -50%, 0);

border: 1px solid rgba(255, 0, 255, 0.3);

box-shadow: 0 0 20px rgba(255, 0, 255, 0.1), 0 0 50px rgba(255, 0, 255, 0.1), inset 0 0 20px rgba(255, 0, 255, 0.1), inset 0 0 50px rgba(255, 0, 255, 0.1);

border-radius: 100%;

width: 200px;

height: 200px;

-webkit-transform: scale(1);

-webkit-animation: rotate-2 5s infinite alternate;

}

.ring-5:before {

content: "";

position: absolute;

width: 200px;

height: 200px;

border-radius: 100%;

border: 1px solid rgba(255, 0, 255, 0.3);

box-shadow: 0 0 20px rgba(255, 0, 255, 0.1), 0 0 50px rgba(255, 0, 255, 0.1), inset 0 0 20px rgba(255, 0, 255, 0.1), inset 0 0 50px rgba(255, 0, 255, 0.1);

-webkit-animation: rotate 3.5s infinite alternate-reverse;

}

.ring-6 {

position: absolute;

left: 50%;

top: 50%;

transform: translate3d(-50%, -50%, 0);

border: 1px solid rgba(0, 255, 255, 0.3);

box-shadow: 0 0 20px rgba(0, 255, 255, 0.1), 0 0 50px rgba(0, 255, 255, 0.1), inset 0 0 20px rgba(0, 255, 255, 0.1), inset 0 0 50px rgba(0, 255, 255, 0.1);

border-radius: 100%;

width: 200px;

height: 200px;

-webkit-transform: scale(1);

-webkit-animation: rotate 2s infinite alternate-reverse;

}

.ring-6:before {

content: "";

position: absolute;

width: 200px;

height: 200px;

border-radius: 100%;

border: 1px solid rgba(0, 255, 255, 0.3);

box-shadow: 0 0 20px rgba(0, 255, 255, 0.1), 0 0 50px rgba(0, 255, 255, 0.1), inset 0 0 20px rgba(0, 255, 255, 0.1), inset 0 0 50px rgba(0, 255, 255, 0.1);

-webkit-animation: rotate 3.5s infinite alternate-reverse;

}

.ring-7 {

position: absolute;

left: 50%;

top: 50%;

transform: translate3d(-50%, -50%, 0);

border: 1px solid rgba(0, 255, 255, 0.3);

box-shadow: 0 0 20px rgba(0, 255, 255, 0.1), 0 0 50px rgba(0, 255, 255, 0.1), inset 0 0 20px rgba(0, 255, 255, 0.1), inset 0 0 50px rgba(0, 255, 255, 0.1);

border-radius: 100%;

width: 200px;

height: 200px;

-webkit-transform: scale(1);

-webkit-animation: rotate-2 5s infinite alternate;

}

.ring-7:before {

content: "";

position: absolute;

width: 200px;

height: 200px;

border-radius: 100%;

border: 1px solid rgba(0, 255, 255, 0.3);

box-shadow: 0 0 20px rgba(0, 255, 255, 0.1), 0 0 50px rgba(0, 255, 255, 0.1), inset 0 0 20px rgba(0, 255, 255, 0.1), inset 0 0 50px rgba(0, 255, 255, 0.1);

-webkit-animation: rotate 3.5s infinite alternate-reverse;

}

.ring-8 {

position: absolute;

left: 50%;

top: 50%;

transform: translate3d(-50%, -50%, 0);

border: 1px solid rgba(255, 0, 255, 0.3);

box-shadow: 0 0 20px rgba(255, 0, 255, 0.1), 0 0 50px rgba(255, 0, 255, 0.1), inset 0 0 20px rgba(255, 0, 255, 0.1), inset 0 0 50px rgba(255, 0, 255, 0.1);

border-radius: 100%;

width: 200px;

height: 200px;

-webkit-transform: scale(1);

-webkit-animation: rotate 10s infinite alternate-reverse;

}

.ring-8:before {

content: "";

position: absolute;

width: 200px;

height: 200px;

border-radius: 100%;

border: 1px solid rgba(255, 0, 255, 0.3);

box-shadow: 0 0 20px rgba(255, 0, 255, 0.1), 0 0 50px rgba(255, 0, 255, 0.1), inset 0 0 20px rgba(255, 0, 255, 0.1), inset 0 0 50px rgba(255, 0, 255, 0.1);

-webkit-animation: rotate 3.5s infinite alternate-reverse;

}

@-webkit-keyframes rotate {

0% {

-webkit-transform: rotate(360deg) scaleX(1);

}

100% {

-webkit-transform: rotate(0deg) scaleX(1.1);

}

}

@-webkit-keyframes rotate-2 {

0% {

-webkit-transform: rotate(360deg) scaleX(0.9);

}

100% {

-webkit-transform: rotate(90deg) scaleX(1.1);

}

}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值