zoukankan      html  css  js  c++  java
  • css3 音乐播放的音浪效果

    <div class="bars">
        <div class="bar"></div>
        <div class="bar"></div>
        <div class="bar"></div>
        <div class="bar"></div>
        <div class="bar"></div>
        <div class="bar"></div>
        <div class="bar"></div>
        <div class="bar"></div>
        <div class="bar"></div>        
        <div class="bar"></div>                                                                        
    </div>
            .bars{
                width: 40px;
                height: 30px;
                position: absolute;
                left: 50%;
                top: 60%;
                margin: -30px 0 0 -20px;
            }
            .bar{
                background: #795548;
                height: 3px;
                width: 3px;
                position: absolute;
                bottom: 1px;
                animation: voice 0ms -800ms linear infinite alternate;
            }
            @keyframes voice{
                    
                0%{
                    height: 3px;
                    opacity: .35;
                }
                100%{
                    height: 24px;
                    opacity: 1;
                }
            }
            .bar:nth-child(1)  { left: 1px; animation-duration: 474ms; }
            .bar:nth-child(2)  { left: 5px; animation-duration: 433ms; }
            .bar:nth-child(3)  { left: 9px; animation-duration: 407ms; }
            .bar:nth-child(4)  { left: 13px; animation-duration: 458ms; }
            .bar:nth-child(5)  { left: 17px; animation-duration: 400ms; }
            .bar:nth-child(6)  { left: 21px; animation-duration: 427ms; }
            .bar:nth-child(7)  { left: 25px; animation-duration: 441ms; }
            .bar:nth-child(8)  { left: 29px; animation-duration: 419ms; }
            .bar:nth-child(9)  { left: 33px; animation-duration: 487ms; }
            .bar:nth-child(10) { left: 37px; animation-duration: 442ms; }

    效果图

     

  • 相关阅读:
    强化学习基础
    大数据核心技术
    大数据用到哪些技术?
    机器学习算法
    机器学习概述
    java进程占用系统内存高,排查解决
    Vmbox Centos7安装完毕后无法联网的解决方法
    Java使用枚举优化大量if else
    java解析多级Json中的数组
    VSCODE安装美化JSON插件
  • 原文地址:https://www.cnblogs.com/yhhBKY/p/15420691.html
Copyright © 2011-2022 走看看