绿满眶商城微信小程序-uniapp
peng
2025-06-27 3f7acbae32700d7c3c2f883968ea33d436df5219
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<template>
  <view class="animations">
    <view class="box">
      <view class="dot dot1"></view>
      <view class="dot dot2"></view>
      <view class="dot dot3"></view>
    </view>
  </view>
</template>
 
<script>
export default {
  name: "loading-bounce",
  data() {
    return {};
  },
};
</script>
 
<style lang="scss" scoped>
.box {
  width: 100rpx;
  height: 50rpx;
  position: relative;
}
.dot {
  width: 14rpx;
  height: 14rpx;
  background: #007aff;
  border-radius: 50%;
  position: absolute;
  top: calc(50% - 5rpx);
}
 
.dot1 {
  background: #1fa2ff;
  left: 0rpx;
  -webkit-animation: bounce 0.5s cubic-bezier(0.77, 0.47, 0.64, 0.28) alternate
    infinite;
  animation: bounce 0.5s cubic-bezier(0.77, 0.47, 0.64, 0.28) alternate infinite;
}
 
.dot2 {
  background: #12d8fa;
  left: 40rpx;
  -webkit-animation: bounce 0.5s 0.2s cubic-bezier(0.77, 0.47, 0.64, 0.28)
    alternate infinite;
  animation: bounce 0.5s 0.2s cubic-bezier(0.77, 0.47, 0.64, 0.28) alternate
    infinite;
}
 
.dot3 {
  background: #29ffc6;
  left: 80rpx;
  -webkit-animation: bounce 0.5s 0.4s cubic-bezier(0.77, 0.47, 0.64, 0.28)
    alternate infinite;
  animation: bounce 0.5s 0.4s cubic-bezier(0.77, 0.47, 0.64, 0.28) alternate
    infinite;
}
 
@-webkit-keyframes bounce {
  0% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
 
  100% {
    -webkit-transform: translateY(-20rpx);
    transform: translateY(-20rpx);
  }
}
 
@keyframes bounce {
  0% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
 
  100% {
    -webkit-transform: translateY(-20rpx);
    transform: translateY(-20rpx);
  }
}
</style>