div+css实现波纹波动动画效果代码
代码语言:html
所属分类:动画
代码描述:div+css实现波纹波动动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Anton'> <style> body { background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%); height: 100vh; overflow: hidden; display: flex; font-family: "Anton", sans-serif; justify-content: center; align-items: center; align-items: flex-end; } .wave { display: flex; filter: drop-shadow(120px 0 0px rgba(149, 191, 218, 0.5)); margin-bottom: 10px; } .window { position: relative; width: 40px; height: 200px; margin: 10px; border-radius: 3px; overflow: hidden; } .window::before { content: "wave"; position: absolute; top: 50%; left: -100%; width: 300%; height: 100%; background: #95bfda; -webkit-animation: upDown 2000ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate, wave 2000ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate; animation: upDown 2000ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate, wave 2000ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate; color: #fff; font-size: 20px; } .window:nth-child(1)::before { -webkit-animation-delay: -500ms, -3500ms; animation-delay: -500ms, -3500ms; } .window:nth-child(2)::before { -webkit-animation-delay: -1000ms, -4000ms; animation-delay: -1000ms, -4000ms; } .window:nth-child(3)::before { -webkit-animation-delay: -1500ms, -4500ms; animation-delay: -1500ms, -4500ms; } .window:nth-child(4)::before { -webkit-animation-delay: -2000ms, -5000ms; animation-delay: -2000ms, -5000ms; } .window:nth-child(5)::before { -webkit-animation-delay: -2500ms, -5500ms; animation-delay: -2500ms, -5500ms; } .window:nth-child(6)::before { -webkit-animation-delay: -3000ms, -6000ms; animation-delay: -3000ms, -6000ms; } .window:nth-child(7)::before { -webkit-animation-delay: -3500ms, -6500ms; animation-delay: -3500ms, -6500ms; } .window:nth-child(8)::before { -webkit-animation-delay: -4000ms, -7000ms; animation-delay: -4000ms, -7000ms; } .window:nth-child(9)::before { -webkit-animation-delay: -4500ms, -7500ms; animation-delay: -4500ms, -7500ms; } .window:nth-child(10)::before { -webkit-animation-delay: -5000ms, -8000ms; animation-delay: -5000ms, -8000ms; } .window:nth-child(11)::before { -webkit-animation-delay: -5500ms, -8500ms; animation-delay: -5500ms, -8500ms; } .window:nth-child(12)::before { -webkit-animation-delay: -.........完整代码请登录后点击上方下载按钮下载查看
网友评论0