css实现音频频谱长条上下波动加载动画效果代码
代码语言:html
所属分类:加载滚动
代码描述:css实现音频频谱长条上下波动加载动画效果代码
代码标签: css 音频 频谱 长条 上下 波动 加载 动画
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> * { margin: 0; padding: 0; box-sizing: border-box; } body { display: flex; align-items: center; justify-content: center; height: 100vh; background-color: black; } .music { display: inline-flex; align-items: center; justify-content: space-between; position: relative; width: 300px; height: 200px; } .music .bar { width: 12px; height: 2px; border-radius: 10px; background-color: white; animation: up_down 1.5s ease-in-out infinite; } @keyframes up_down { 0%, 100% { height: 2px; } 50% { height: 80px; } } .music .bar:nth-child(1) { background-color: purple; animation-delay: 1s; } .music .bar:nth-child(2) { background-color: crimson; animation-delay: 0.8s; } .music .bar:nth-child(3) { background-color: deeppink; animation-delay: 0.6s; } .music .bar:nth-child(4) { background-color: orange; animation-delay: 0.4s; } .music .bar:nth-child(5) { b.........完整代码请登录后点击上方下载按钮下载查看
网友评论0