css+svg实现水滴下落融入动画效果代码
代码语言:html
所属分类:动画
代码描述:css+svg实现水滴下落融入动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> * { margin: 0; padding: 0; box-sizing: border-box; } body { height: 100vh; width: 100vw; display: flex; justify-content: center; align-items: center; } .cont { width: 300px; height: 230px; position: relative; overflow: hidden; border-top: 15px solid black; border-bottom: 15px solid black; border-radius: 10px; filter: url("#goo"); } .cont .drip { height: 30px; width: 30px; border-radius: 50%; background: black; position: absolute; top: -100%; animation: falling 5s linear infinite; } @keyframes falling { 0% { top: -100%; } 50% { top: 0%; } 80% { top: 80%; } 100% { top: 100%; } } .cont .drip:nth-child(1) { border-color: black; height: 30px; width: 30px; animation-delay: -0.2s; background: black; left: 64.........完整代码请登录后点击上方下载按钮下载查看
网友评论0