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-colo.........完整代码请登录后点击上方下载按钮下载查看

网友评论0