add raindrop background

This commit is contained in:
Timi
2025-12-05 18:21:09 +08:00
parent 99ad931059
commit 199d1ed6ef
7 changed files with 125 additions and 11 deletions

View File

@ -0,0 +1,9 @@
<!--components/background/raindrop/index.wxml-->
<view class="raindrops" style="width: {{docWidth}}px; height: {{docHeight}}px;">
<view
class="raindrop"
wx:for="{{raindrops}}"
wx:key="index"
style="left: {{item.x}}px; height: {{item.length}}px; animation-duration: {{item.speed}}s;"
></view>
</view>