css泳池倒影水纹波动动画效果代码

代码语言:html

所属分类:动画

代码描述:css泳池倒影水纹波动动画效果代码

代码标签: 水纹 波动 动画 效果

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

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

<head>

  <meta charset="UTF-8">

  
<style>

html {
  font-size: 12px;
}

body {
  font-size: 12px;
  height: 100%;
  display: grid;
  font-family: "Cooper";
  height: 100vh;
  margin: 0;
  background: #efefef;
}
body svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: clamp(600px, 900px, 100vh);
  width: auto;
  box-shadow: 0 40px 60px -40px rgba(0, 0, 0, 0.25);
}
body svg foreignObject {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at bottom, rgba(82, 125, 18, 0.5) 50%, rgba(35, 54, 8, 0.75));
}
body svg foreignObject:before {
  content: "";
  position: absolute;
  width: 105%;
  height: 105%;
  z-index: 10;
  left: -2.5%;
  top: -2.5%;
  box-shadow: inset 0 0 0 50px #fff;
  box-sizing: border-box;
}
body svg foreignObject #wrap {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  flex-wrap: wrap;
}

@keyframes hifive {
  20% {
    transform: translate(-300px, -60px) rotate(10deg);
  }
  21.5% {
    transform: translate(0px, 0px) rotate(0deg);
  }
  24% {
    transform: translate(0px, 0px) rotate(0deg);
  }
  27.5% {
    transform: translate(-300px, -60px) rotate(10deg);
  }
}
body svg foreignObject #wrap .hand {
  width: 250px;
  height: 350px;
  position: absolute;
  -webkit-mask: linear-gradient(to bottom, #000 70%, rgba(0, 0, 0, 0.05));
  z-index: 8;
  left.........完整代码请登录后点击上方下载按钮下载查看

网友评论0