svg+css实现文字滴水动画效果代码

代码语言:html

所属分类:动画

代码描述:svg+css实现文字滴水动画效果代码

代码标签: svg css 文字 滴水 动画

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

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

<head>
  <meta charset="UTF-8">
  

  
  
  
  
<style>
body {
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  font-family: sans-serif;
  background: #badfff;
}

h1 {
  font-weight: bold;
  font-size: 240px;
  text-align: center;
  color: #007fed;
  text-shadow: 2px 2px 0 #002d54;
}
h1:after {
  content: "";
  position: absolute;
  width: 100%;
  height: 20px;
  background: radial-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
}

.goo {
  position: relative;
  width: 600px;
  margin: auto;
  filter: url(#goo);
}

.drop {
  opacity: 0;
  width: 30px;
  height: 40px;
  background: #0097ed;
  border-radius: 1000px;
  position: absolute;
  animation: drip 8s infinite;
  border: 2px solid #002d54;
  border-top: none;
  top: 170px;
  left: 70px;
}
.drop:nth-child(2) {
  left: 130px;
  animation-delay: 3s;
}
.drop:nth-child(3) {
  left: 298px;
  animation-delay: 2s;
}
.drop:nth-child(4) {
  left: 203px;
  animation-delay: 4s;
}
.drop:nth-child(5) {
  left: 415px;
  animation-delay: 1.5s;
}
.drop:nth-child(6) {
  left: 510px;
  animation-delay: 5s;
}

@keyframes drip {
  0% {
.........完整代码请登录后点击上方下载按钮下载查看

网友评论0