yangan
21 小时以前 a28d0135ee42809b2c5863609da37155d3ecba5b
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
<template>
    <div class="template">
        <view class="cartoon" >
             <span class="char">拼</span>
             <span class="char">命</span>
             <span class="char">加</span>
             <span class="char">载</span>
             <span class="char">中</span>
             <span class="char">.</span>
             <span class="char">.</span>
             <span class="char">.</span>
        </view>
    </div>
</template>
 
<style lang="scss" scoped>
    .cartoon{
        .char {
          display: inline-block;
           transform: translateY(8px);
           width: 20px;
           height: 20px;
           border-radius: 3px;
           animation: bounce 0.5s infinite alternate;
        }
        .char:nth-child(2) {
          animation-delay: 0.1s;
        }
        
        .char:nth-child(3) {
          animation-delay: 0.2s;
        }
        
        .char:nth-child(4) {
          animation-delay: 0.3s;
        }
        
        .char:nth-child(5) {
          animation-delay: 0.4s;
        }
        
        .char:nth-child(6) {
          animation-delay: 0.5s;
        }
        
        .char:nth-child(7) {
          animation-delay: 0.6s;
        }
        
        .char:nth-child(8) {
          animation-delay: 0.7s;
        }
        
        @keyframes bounce {
          0% {
            transform: translateY(8px);
            border-radius: 5px;
          }
          100% {
            transform: translateY(-8px);
            border-radius: 3px;
          }
        }
    }
    
    
    .template {
        padding: 20px;
        text-align: center;
 
        .loader {
            margin: 25px;
        }
    }
 
</style>