原生js实现个线状发散灰条动画效果代码

代码语言:html

所属分类:布局界面

代码描述:原生js实现个线状发散灰条动画效果代码

代码标签: 线状 发散 灰条 动画 效果

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


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

<head>

  <meta charset="UTF-8">

  
  
<style>
#svg {
  width: 100%;
  height: 100%;
  background: #eee;
}

body {
  margin: 0;
  height: 100vh;
}

line {
  transform-origin: center;
  animation: do 4s infinite alternate;
}

line:nth-child(6n) {
  animation-delay: -1s;
}

line:nth-child(6n + 1) {
  animation-delay: -2s;
}

line:nth-child(6n + 2) {
  animation-delay: -3s;
}

line:nth-child(6n + 3) {
  animation-delay: -4s;
}

line:nth-child(6n + 4) {
  animation-delay: -5s;
}

@keyframes do {
  100% {
    transform: scale(0.9);
  }
}
</style>

</head>

<body translate="no" >
  <svg id="svg" viewBox="0 0 100 100">
  <circle cx="50" cy="50" r="1" fill="white" stroke="black"></circle>
</svg>

  
  
      <script>
const getRandomI.........完整代码请登录后点击上方下载按钮下载查看

网友评论0