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)}
}
相关推荐
天天鸭10 分钟前
5 万处中文的老项目实现国际化,如何用架构思维完成改造?
前端·javascript·架构
程序员黑豆17 分钟前
鸿蒙应用开发之持久化存储解析:PersistentStorage / PersistenceV2 / preferences 选型与实战
前端·harmonyos
明月_清风23 分钟前
🚀 OpenAI 数据代理架构全解析:从 600 PB 到自然语言的六层上下文工程
前端·后端·架构
明月_清风24 分钟前
🚀 从 Foundry 到 AIP:Palantir 发生了什么变化?一篇文章全搞懂
前端·后端
西门啐血29 分钟前
Vue 缓存之坑,变量赋值方式和响应式数据
前端·vue.js·缓存
涛涛ing1 小时前
2026 上半年,前端圈已经炸了五次
前端
hunterandroid1 小时前
Android 后台任务可靠性排查:从 WorkManager 观测到失败重试闭环
android·前端
skiyee1 小时前
🔥 oiyo & unibest = 又新又好的 uniapp 模板
前端·uni-app
xingren1 小时前
「眨眼」UI 特效 - 在 Winform/WPF/WinUI3/Avalonia/Web 的实现
前端
kuinnebula1 小时前
MP4音频帧定位与提取
音视频