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.30612s;
}

i:nth-child(11) {
  transform: rotate(39.6deg) translate3d(100px, 0, 0);
}
i:nth-child(11) b {
  animation-delay: 0.33673s;
}

i:nth-child(12) {
  transform: rotate(43.2deg) translate3d(100px, 0, 0);
}
i:nth-child(12) b {
  animation-delay: 0.36735s;
}

i:nth-child(13) {
  transform: rotate(46.8deg) translate3d(100px, 0, 0);
}
i:nth-child(13) b {
  animation-delay: 0.39796s;
}

i:nth-child(14) {
  transform: rotate(50.4deg) translate3d(100px, 0, 0);
}
i:nth-child(14) b {
  animation-delay: 0.42857s;
}

i:nth-child(15) {
  transform: rotate(54deg) translate3d(100px, 0, 0);
}
i:nth-child(15) b {
  animation-delay: 0.45918s;
}

i:nth-child(16) {
  transform: rotate(57.6deg) translate3d(100px, 0, 0);
}
i:nth-child(16) b {
  animation-delay: 0.4898s;
}

i:nth-child(17) {
  transform: rotate(61.2deg) translate3d(100px, 0, 0);
}
i:nth-child(17) b {
  animation-delay: 0.52041s;
}

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

i:nth-child(19) {
  transform: rotate(68.4deg) translate3d(100px, 0, 0);
}
i:nth-child(19) b {
  animation-delay: 0.58163s;
}

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

网友评论0