css实现光环闪耀动画效果代码

代码语言:html

所属分类:动画

代码描述:css实现光环闪耀动画效果代码

代码标签: 闪耀 动画 效果

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


<!DOCTYPE html>
<html lang="en" >

<head>

  <meta charset="UTF-8">

  
<style>
html, body {
  overflow: hidden;
  background: #111;
}

.spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  perspective: 200px;
}

i {
  display: block;
  position: absolute;
  opacity: 1;
}
i b {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 6px;
  background: white;
  box-shadow: 0px 0px 14px white;
  animation-name: spin;
  animation-duration: 3s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

i:nth-child(1) {
  transform: rotate(3.6deg) translate3d(100px, 0, 0);
}
i:nth-child(1) b {
  animation-delay: 0.03061s;
}

i:nth-child(2) {
  transform: rotate(7.2deg) translate3d(100px, 0, 0);
}
i:nth-child(2) b {
  animation-delay: 0.06122s;
}

i:nth-child(3) {
  transform: rotate(10.8deg) translate3d(100px, 0, 0);
}
i:nth-child(3) b {
  animation-delay: 0.09184s;
}

i:nth-child(4) {
  transform: rotate(14.4deg) translate3d(100px, 0, 0);
}
i:nth-child(4) b {
  animation-delay: 0.12245s;
}

i:nth-child(5) {
  transform: rotate(18deg) translate3d(100px, 0, 0);
}
i:nth-child(5) b {
  animation-delay: 0.15306s;
}

i:nth-child(6) {
  transform: rotate(21.6deg) translate3d(100px, 0, 0);
}
i:nth-child(6) b {
  animation-delay: 0.18367s;
}

i:nth-child(7) {
  transform: rotate(25.2deg) translate3d(100px, 0, 0);
}
i:nth-child(7) b {
  animation-delay: 0.21429s;
}

i:nth-child(8) {
  transform: rotate(28.8deg) translate3d(100px, 0, 0);
}
i:nth-child(8) b {
  animation-delay: 0.2449s;
}

i:nth-child(9) {
  transform: rotate(32.4deg) translate3d(100px, 0, 0);
}
i:nth-child(9) b {
  animation-delay: 0.27551s;
}

i:nth-child(10) {
  transform: rotate(36deg) translate3d(100px, 0, 0);
}
i:nth-child(10) b {
  animation-delay: 0.306.........完整代码请登录后点击上方下载按钮下载查看

网友评论0