css实现一个音乐播放频谱状状体上下起伏动画效果代码

代码语言:html

所属分类:动画

代码描述:css实现一个音乐播放频谱状状体上下起伏动画效果代码

代码标签: css 音乐 播放 动画 频谱

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

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">






    <style>
        * {
          margin: 0;
          padding: 0;
          border: 0;
          box-sizing: border-box;
        }
        body {
          font-family: "Lato", sans-serif;
          font-weight: 100;
          font-size: 16px;
          color: #333;
          text-align: center;
          background: #eee;
        }
        .playing {
          position: fixed;
          top: 50%;
          left: 50%;
          width: auto;
          transform: translateX(-50%) translateY(-50%);
        }
        .playing:after {
          content: "Now Playing.";
          display: block;
          width: 100%;
          margin-top: 10px;
        }
        .now.playing .bar {
          display: inline-block;
          position: relative;
          margin-right: 1px;
          width: 10px;
          height: 1px;
          overflow: hidden;
          background: linear-gradient(to bottom, #ff9500, #ff5e3a);
          color: transparent;
          -webkit-animation-name: pulse;
                  animation-name: pulse;
          -webkit-animation-duration: 1s;
                  animation-duration: 1s;
          -webkit-animation-iteration-count: infinite;
                  animation-iteration-count: infinite;
        }
        .paused.playing .bar {
          -webkit-animation-iteration-count: 1;
                  animation-iteration-count: 1;
        }
        .paused.playing:after {
          content: "Paused (Lame)"
        }
        .n1 {
          -webkit-animation-delay: 0.5s;
                  animation-delay: 0.5s;
        }
        .n2 {
          -webkit-animation-delay: 0.2s;
                  animation-delay: 0.2s;
        }
        .n3 {
          -webkit-animation-delay: 1.2s;
                  animation-delay: 1.2s;
        }
        .n4 {
          -webkit-animation-delay: 0.9s;
                  animation-delay: 0.9s;
        }
        .n5 {
          -webkit-animation-delay: 2.3s;
                  animation-delay: 2.3s;
        }
        .n6 {
          -webkit-animation-delay: 1.3s;
                  animation-delay: 1.3s;
        }
        .n7 {
          -webkit-animation-delay: 3.1s;
                  animation-delay: 3.1s;
        }
        .n8 {
          -webkit-animation-del.........完整代码请登录后点击上方下载按钮下载查看

网友评论0