Ben Lin
2024-06-18 ebbd788fbb2c0b45d4473798efc57eec8ba74a25
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
85
86
87
88
89
90
91
92
93
94
95
96
97
.fade-transition {
  &-enter-active,
  &-leave-active {
    transition: opacity 0.2s ease-in-out;
  }
 
  &-enter-from,
  &-leave-to {
    opacity: 0;
  }
}
 
.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.2s ease-in-out;
}
 
.fade-enter-from,
.fade-leave-to {
  opacity: 0;
}
 
/* fade-slide */
.fade-slide-leave-active,
.fade-slide-enter-active {
  transition: all 0.3s;
}
 
.fade-slide-enter-from {
  transform: translateX(-30px);
  opacity: 0;
}
 
.fade-slide-leave-to {
  transform: translateX(30px);
  opacity: 0;
}
 
// ///////////////////////////////////////////////
// Fade Bottom
// ///////////////////////////////////////////////
 
// Speed: 1x
.fade-bottom-enter-active,
.fade-bottom-leave-active {
  transition:
    opacity 0.25s,
    transform 0.3s;
}
 
.fade-bottom-enter-from {
  transform: translateY(-10%);
  opacity: 0;
}
 
.fade-bottom-leave-to {
  transform: translateY(10%);
  opacity: 0;
}
 
// fade-scale
.fade-scale-leave-active,
.fade-scale-enter-active {
  transition: all 0.28s;
}
 
.fade-scale-enter-from {
  transform: scale(1.2);
  opacity: 0;
}
 
.fade-scale-leave-to {
  transform: scale(0.8);
  opacity: 0;
}
 
// ///////////////////////////////////////////////
// Fade Top
// ///////////////////////////////////////////////
 
// Speed: 1x
.fade-top-enter-active,
.fade-top-leave-active {
  transition:
    opacity 0.2s,
    transform 0.25s;
}
 
.fade-top-enter-from {
  transform: translateY(8%);
  opacity: 0;
}
 
.fade-top-leave-to {
  transform: translateY(-8%);
  opacity: 0;
}