css3模拟音频播放

复制代码
<view class="time-box">
  <view class="start-taste-line">
    <view class="hr1"> </view>
    <view class="hr2"> </view>
    <view class="hr3"> </view>
    <view class="hr4"> </view>
    <view class="hr5"> </view>
    <view class="hr6"> </view>
    <view class="hr7"> </view>
    <view class="hr8"> </view>  
  </view>
</view>

.time-box .start-taste-line view{background-color:#c8c8c8;width:6rpx;height:12rpx;border-radius:1rpx;margin:0 8rpx;display:inline-block;border:none}
.hr1{animation:note .4s ease-in-out;animation-iteration-count:infinite;animation-direction:alternate;animation-delay:-1s}
.hr2{animation:note .4s ease-in-out;animation-iteration-count:infinite;animation-direction:alternate;animation-delay:-.9s}
.hr3{animation:note .4s ease-in-out;animation-iteration-count:infinite;animation-direction:alternate;animation-delay:-.8s}
.hr4{animation:note .4s ease-in-out;animation-iteration-count:infinite;animation-direction:alternate;animation-delay:-.7s}
.hr5{animation:note .4s ease-in-out;animation-iteration-count:infinite;animation-direction:alternate;animation-delay:-.6s}
.hr6{animation:note .4s ease-in-out;animation-iteration-count:infinite;animation-direction:alternate;animation-delay:-.5s}
.hr7{animation:note .4s ease-in-out;animation-iteration-count:infinite;animation-direction:alternate;animation-delay:-.4s}
.hr8{animation:note .4s ease-in-out;animation-iteration-count:infinite;animation-direction:alternate;animation-delay:-.3s}
@keyframes note{from{transform:scaleY(1)}
to{transform:scaleY(4)}
}
相关推荐
夏幻灵几秒前
HTML5里最常用的十大标签
前端·html·html5
Mr Xu_14 分钟前
Vue 3 中 watch 的使用详解:监听响应式数据变化的利器
前端·javascript·vue.js
未来龙皇小蓝18 分钟前
RBAC前端架构-01:项目初始化
前端·架构
程序员agions26 分钟前
2026年,微前端终于“死“了
前端·状态模式
万岳科技系统开发26 分钟前
食堂采购系统源码库存扣减算法与并发控制实现详解
java·前端·数据库·算法
那个村的李富贵33 分钟前
CANN赋能AIGC“数字人”革命:实时视频换脸与表情驱动实战
aigc·音视频
程序员猫哥_34 分钟前
HTML 生成网页工具推荐:从手写代码到 AI 自动生成网页的进化路径
前端·人工智能·html
龙飞0534 分钟前
Systemd -systemctl - journalctl 速查表:服务管理 + 日志排障
linux·运维·前端·chrome·systemctl·journalctl
晚霞的不甘38 分钟前
CANN 支持强化学习:从 Isaac Gym 仿真到机械臂真机控制
人工智能·神经网络·架构·开源·音视频
我爱加班、、40 分钟前
Websocket能携带token过去后端吗
前端·后端·websocket