多圈涟漪动画效果

代码语言:html

所属分类:动画

代码描述:圈圈涟漪动画效果

代码标签: 效果

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


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

<style>
BODY {
  background: #000;
  min-height: 100vh;
  display: -webkit-box;
  display: flex;
  -webkit-box-pack: center;
          justify-content: center;
  -webkit-box-align: center;
          align-items: center;
}

DIV {
  position: relative;
  width: 400px;
  height: 400px;
  background: purple;
  background-image: repeating-conic-gradient(transparent, indigo, transparent 60deg);
  border-radius: 40% 30% 40% 50% / 40% 50%;
  -webkit-animation: radius 7s linear infinite;
          animation: radius 7s linear infinite;
}
DIV::before, DIV::after {
  content: '';
  position: absolute;
  border-radius: inherit;
  -webkit-animation: inherit;
          animation: inherit;
  box-shadow: 0 0 20px 10px rgba(0, 0, 0, 0.15), 0 0 10px 5px rgba(0, 0, 0, 0.15);
}
DIV::before {
  top: 15%;
  left: 15%;
  right: 15%;
  bottom: 15%;
  background: orangered;
  background-image: repeating-conic-gradient(from 15deg, transparent, crimson, transparent 60deg);
  -webkit-animation-delay: -2.3333333333s;
          animation-delay: -2.3333333333s;
  -w.........完整代码请登录后点击上方下载按钮下载查看

网友评论0