纯css实现彩虹动画

代码语言:html

所属分类:动画

代码描述:纯css实现彩虹动画

代码标签: 彩虹 动画

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开


<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">

<style>
.red {
  border: 18px solid red;
  border-radius: 50%;
  position: absolute;
  top: 0px;
  left: 0px;
  right: 0px;
  bottom: 0px;
}

.runanimation .red {
  animation: bow2 0.35s forwards;
  animation-delay: 5.45s;
}

.orange {
  border: 18px solid orange;
  border-radius: 50%;
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  bottom: 18px;
}

.runanimation .orange {
  animation: bow 0.35s forwards;
  animation-delay: 5.1s;
}

.yellow {
  border: 18px solid yellow;
  border-radius: 50%;
  position: absolute;
  top: 36px;
  left: 36px;
  right: 36px;
  bottom: 36px;
}

.runanimation .yellow {
  animation: bow2 0.35s forwards;
  animation-delay: 4.75s;
}

.green {
  border: 18px solid green;
  border-radius: 50%;
  position: absolute;
  top: 54px;
  left: 54px;
  right: 54px;
  bottom: 54px;
}

.runanimation .green {
  animation: bow 0.35s forwards;
  animation-delay: 4.4s;
}

.blue {
  border: 18px solid blue;
  border-radius: 50%;
  position: absolut.........完整代码请登录后点击上方下载按钮下载查看

网友评论0