Blame view

src/design/transition/fade.less 1.32 KB
陈文彬 authored
1
2
.fade-enter-active,
.fade-leave-active {
3
  transition: opacity 0.2s ease-in-out;
陈文彬 authored
4
5
6
7
}

.fade-enter-from,
.fade-leave-to {
vben authored
8
  opacity: 0%;
陈文彬 authored
9
10
}
11
12
13
/* fade-slide */
.fade-slide-leave-active,
.fade-slide-enter-active {
vben authored
14
  transition: all 0.3s;
陈文彬 authored
15
16
}
17
.fade-slide-enter-from {
vben authored
18
  opacity: 0%;
vben authored
19
  transform: translateX(-30px);
陈文彬 authored
20
21
}
22
.fade-slide-leave-to {
vben authored
23
  opacity: 0%;
vben authored
24
  transform: translateX(30px);
陈文彬 authored
25
26
27
28
29
30
31
32
33
}

// ///////////////////////////////////////////////
// Fade Bottom
// ///////////////////////////////////////////////

// Speed: 1x
.fade-bottom-enter-active,
.fade-bottom-leave-active {
vben authored
34
  transition: opacity 0.25s, transform 0.3s;
陈文彬 authored
35
36
}
vben authored
37
.fade-bottom-enter-from {
vben authored
38
  opacity: 0%;
vben authored
39
  transform: translateY(-10%);
陈文彬 authored
40
41
42
}

.fade-bottom-leave-to {
vben authored
43
  opacity: 0%;
vben authored
44
45
46
47
48
49
50
51
52
53
  transform: translateY(10%);
}

// fade-scale
.fade-scale-leave-active,
.fade-scale-enter-active {
  transition: all 0.28s;
}

.fade-scale-enter-from {
vben authored
54
  opacity: 0%;
vben authored
55
56
57
58
  transform: scale(1.2);
}

.fade-scale-leave-to {
vben authored
59
  opacity: 0%;
vben authored
60
  transform: scale(0.8);
陈文彬 authored
61
62
63
64
65
66
67
68
69
}

// ///////////////////////////////////////////////
// Fade Top
// ///////////////////////////////////////////////

// Speed: 1x
.fade-top-enter-active,
.fade-top-leave-active {
70
  transition: opacity 0.2s, transform 0.25s;
陈文彬 authored
71
72
}
73
.fade-top-enter-from {
vben authored
74
  opacity: 0%;
陈文彬 authored
75
76
77
78
  transform: translateY(8%);
}

.fade-top-leave-to {
vben authored
79
  opacity: 0%;
陈文彬 authored
80
81
  transform: translateY(-8%);
}