纯css模拟波纹动画效果

代码语言:html

所属分类:动画

代码描述:纯css模拟波纹动画效果

代码标签: 波纹 动画 效果

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


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

<style>
body {
  background: #000;
  height: 100vh;
  overflow: hidden;
  display: -webkit-box;
  display: flex;
  -webkit-box-pack: center;
          justify-content: center;
  -webkit-box-align: center;
          align-items: center;
  -webkit-perspective: 500px;
          perspective: 500px;
}

.rings .ring {
  position: absolute;
  -webkit-animation: rotate 5000ms cubic-bezier(0.545, 0.08, 0.52, 0.975) infinite alternate;
          animation: rotate 5000ms cubic-bezier(0.545, 0.08, 0.52, 0.975) infinite alternate;
  -webkit-transform-style: preserve-3d;
          transform-style: preserve-3d;
}
.rings .ring .ring_inner {
  border-radius: 100%;
}
.rings .ring:nth-child(1) .ring_inner {
  width: 0px;
  height: 0px;
  border: 2px solid #1effff;
  -webkit-animation: wave 3000ms 0ms cubic-bezier(0.545, 0.08, 0.52, 0.975) infinite;
          animation: wave 3000ms 0ms cubic-bezier(0.545, 0.08, 0.52, 0.975) infinite;
  -webkit-filter: blur(15px) brightness(400%);
          filter: blur(15px) brightness(400%);
}
.rings .ring:nth-child(2) .ring_inner {
  width: 30px;
  height: 30px;
  border: 2px solid #1ef5fd;
  -webkit-animation: wave 3000ms 50ms cubic-bezier(0.545, 0.08, 0.52, 0.975) infinite;
          animation: wave 3000ms 50ms cubic-bezier(0.545, 0.08, 0.52, 0.975) infinite;
  -webkit-filter: blur(15px) brightness(400%);
          filter: blur(15px) brightness(400%);
}
.rings .ring:nth-child(3) .ring_inner {
  width: 60px;
  height: 60px;
  border: 2px solid #1eebfb;
  -webkit-animation: wave 3000ms 100ms cubic-bezier(0.545, 0.08, 0.52, 0.975) infinite;
          animation: wave 3000ms 100ms cubic-bezier(0.545, 0.08, 0.52, 0.975) infinite;
  -webkit-filter: blur(15px) brightness(400%);
          filter: blur(15px) brightness(400%);
}
.rings .ring:nth-child(4) .ring_inner {
  width: 90px;
  height: 90px;
  border: 2px solid #1ee1f9;
  -webkit-animation: wave 3000ms 150ms cubic-bezier(0.545, 0.08, 0.52, 0.975) infinite;
          animation: wave 3000ms 150ms cubic-bezier(0.545, 0.08, 0.52, 0.975) infinite;
  -webkit-filter: blur(15px) brightness(400%);
          filter: blur(15px) brightness(400%);
}
.rings .ring:nth-child(5) .ring_inner {
  width: 120px;
  height: 120px;
  border: 2px solid #1ed7f7;
  -webkit-animation: wave 3000ms 200ms cubic-bezier(0.545, 0.08, 0.52, 0.975) infinite;
          animation: wave 3000ms 200ms cubic-bezier(0.545, 0.08, 0.52, 0.975) infinite;
  -webkit-filter: blur(15px) brightness(400%);
          filter: blur(15px) brightness(400%);
}
.rings .ring:nth-child(6) .ring_inner {
  width: 150px;
  height: 150px;
  border: 2px solid #1ecdf5;
  -webkit-animation: wave 3000ms 250ms cubic-bezier(0.545, 0.08, 0.52, 0.975) infinite;
          anima.........完整代码请登录后点击上方下载按钮下载查看

网友评论0