css边框流光溢彩,CSS3 流光溢彩的宝石蓝小圆球

CSS

语言:

CSSSCSS

确定

* {

box-sizing: border-box;

}

body {

padding: 0px;

background-color: #002031;

}

.small2 {

position: absolute;

height: 100px;

width: 100px;

background-color: transparent;

top: 50vh;

left: 50%;

-webkit-transform: translate(-50%, -50%);

-ms-transform: translate(-50%, -50%);

transform: translate(-50%, -50%);

}

.small1 {

position: absolute;

height: 100px;

width: 100px;

top: 50vh;

left: 50%;

-webkit-transform-origin: center;

-ms-transform-origin: center;

transform-origin: center;

-webkit-transform: translate(-50%, -50%) rotate(45deg);

-ms-transform: translate(-50%, -50%) rotate(45deg);

transform: translate(-50%, -50%) rotate(45deg);

background-color: transparent;

}

.bigcon {

position: absolute;

height: 95px;

width: 95px;

top: 50vh;

left: 50%;

-webkit-transform-origin: center;

-ms-transform-origin: center;

transform-origin: center;

-webkit-transform: translate(-50%, -50%) rotate(-45deg);

-ms-transform: translate(-50%, -50%) rotate(-45deg);

transform: translate(-50%, -50%) rotate(-45deg);

background-color: transparent;

-webkit-animation: bigcon 2s infinite linear;

animation: bigcon 2s infinite linear;

-webkit-animation-delay: 0.25s;

animation-delay: 0.25s;

}

.ball {

border-radius: 50%;

position: absolute;

}

.small {

width: 25px;

height: 25px;

-webkit-animation: small 2s infinite ease;

animation: small 2s infinite ease;

box-shadow: 0px 2px rgba(0, 0, 0, 0.3);

background-color: #46b9ff;

}

.small:nth-child(1) {

top: 0%;

left: 0%;

}

.small:nth-child(2) {

top: 0%;

right: 0%;

}

.small:nth-child(3) {

right: 0%;

bottom: 0%;

}

.small:nth-child(4) {

bottom: 0%;

left: 0%;

}

.big {

width: 20px;

height: 20px;

border-radius: 15px;

box-shadow: 0px 0px 10px #54f7f8, 0px 0px 20px #54f7f8, 0px 0px 30px #54f7f8, 0px 0px 50px #54f7f8, 0px 0px 60px #54f7f8;

z-index: 1;

background-color: #54f7f8;

-webkit-animation: bigball 1s infinite linear;

animation: bigball 1s infinite linear;

}

.smallball1 {

-webkit-animation-delay: -1.75s;

animation-delay: -1.75s;

}

.smallball6 {

-webkit-animation-delay: -1.5s;

animation-delay: -1.5s;

}

.smallball2 {

-webkit-animation-delay: -1.25s;

animation-delay: -1.25s;

}

.smallball7 {

-webkit-animation-delay: -1s;

animation-delay: -1s;

}

.smallball3 {

-webkit-animation-delay: -0.75s;

animation-delay: -0.75s;

}

.smallball8 {

-webkit-animation-delay: -0.5s;

animation-delay: -0.5s;

}

.smallball4 {

-webkit-animation-delay: -0.25s;

animation-delay: -0.25s;

}

.smallball5 {

-webkit-animation-delay: 0s;

animation-delay: 0s;

}

@-webkit-keyframes bigcon {

0% {

-webkit-transform-origin: center;

transform-origin: center;

-webkit-transform: translate(-50%, -50%) rotate(45deg);

transform: translate(-50%, -50%) rotate(45deg);

}

100% {

-webkit-transform-origin: center;

transform-origin: center;

-webkit-transform: translate(-50%, -50%) rotate(405deg);

transform: translate(-50%, -50%) rotate(405deg);

}

}

@keyframes bigcon {

0% {

-webkit-transform-origin: center;

transform-origin: center;

-webkit-transform: translate(-50%, -50%) rotate(45deg);

transform: translate(-50%, -50%) rotate(45deg);

}

100% {

-webkit-transform-origin: center;

transform-origin: center;

-webkit-transform: translate(-50%, -50%) rotate(405deg);

transform: translate(-50%, -50%) rotate(405deg);

}

}

@-webkit-keyframes small {

0% {

-webkit-transform: scale(1);

transform: scale(1);

background-color: #46b9ff;

}

10% {

-webkit-transform: scale(1.3);

transform: scale(1.3);

background-color: #54f7f8;

}

15% {

-webkit-transform: scale(1);

transform: scale(1);

}

25% {

-webkit-transform: scale(1);

transform: scale(1);

background-color: #46b9ff;

}

100% {

-webkit-transform: scale(1);

transform: scale(1);

background-color: #46b9ff;

}

}

@keyframes small {

0% {

-webkit-transform: scale(1);

transform: scale(1);

background-color: #46b9ff;

}

10% {

-webkit-transform: scale(1.3);

transform: scale(1.3);

background-color: #54f7f8;

}

15% {

-webkit-transform: scale(1);

transform: scale(1);

}

25% {

-webkit-transform: scale(1);

transform: scale(1);

background-color: #46b9ff;

}

100% {

-webkit-transform: scale(1);

transform: scale(1);

background-color: #46b9ff;

}

}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值