div+css实现s形无限循环彩色漩涡动画效果代码
代码语言:html
所属分类:动画
代码描述:div+css实现s形无限循环彩色漩涡动画效果代码
代码标签: div css s 形 无限 循环 彩色 漩涡 动画
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
* {
padding: 0;
margin: 0;
outline: 0;
}
html, body {
width: 100%;
height: 100%;
}
body {
background-color: #140032;
}
.s {
position: absolute;
inset: 0;
margin: auto;
width: 200px;
height: 200px;
border-left: 10px ridge transparent;
border-right: 10px ridge transparent;
border-radius: 25%;
transform: scale(0.25) rotate(0deg);
animation: infinity 12s ease-in-out infinite;
}
.s:nth-child(1) {
animation-delay: 0.0625s;
border-color: #ff0020;
}
.s:nth-child(2) {
animation-delay: 0.125s;
border-color: #ff0040;
}
.s:nth-child(3) {
animation-delay: 0.1875s;
border-color: #ff0060;
}
.s:nth-child(4) {
animation-delay: 0.25s;
border-color: #ff0080;
}
.s:nth-child(5) {
animation-delay: 0.3125s;
border-color: #ff009f;
}
.s:nth-child(6) {
animation-delay: 0.375s;
border-color: #ff00bf;
}
.s:nth-child(7) {
animation-delay: 0.4375s;
border-color: #ff00df;
}
.s:nth-child(8) {
animation-delay: 0.5s;
border-color: fuchsia;
}
.s:nth-child(9) {
animation-delay: 0.5625s;
border-color: #df00ff;
}
.s:nth-child(10) {
animation-delay: 0.625s;
border-color: #bf00ff;
}
.s:nth-child(11) {
animation-delay: 0.6875s;
border-color: #9f00ff;
}
.s:nth-child(12) {
animation-delay: 0.75s;
border-color: #8000ff;
}
.s:nth-child(13) {
animation-delay: 0.8125s;
border-color: #6000ff;
}
.s:nth-child(14) {
animation-delay: 0.875s;
border-color: #4000ff;
}
.s:nth-child(15) {
animation-delay: 0.9375s;
border-color: #2000ff;
}
.s:nth-child(16) {
animation-delay: 1s;
border-color: blue;
}
.s:nth-child(17) {
animation-delay: 1.0625s;
border-color: #0020ff;
}
.s:nth-child(18) {
animation-delay: 1.125s;
border-color: #0040ff;
}
.s:nth-child(19) {
animation-delay: 1.1875s;
border-color: #0060ff;
}
.s:nth-child(20) {
animation-delay: 1.25s;
border-color: #0080ff;
}
.s:nth-child(21) {
animation-delay: 1.3125s;
border-color: #009fff;
}
.s:nth-child(22) .........完整代码请登录后点击上方下载按钮下载查看
网友评论0