Blame view

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

.fade-enter-from,
.fade-leave-to {
  opacity: 0;
}
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 {
陈文彬 authored
18
  opacity: 0;
vben authored
19
  transform: translateX(-30px);
陈文彬 authored
20
21
}
22
.fade-slide-leave-to {
陈文彬 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 {
陈文彬 authored
38
  opacity: 0;
vben authored
39
  transform: translateY(-10%);
陈文彬 authored
40
41
42
43
}

.fade-bottom-leave-to {
  opacity: 0;
vben authored
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
  transform: translateY(10%);
}

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

.fade-scale-enter-from {
  opacity: 0;
  transform: scale(1.2);
}

.fade-scale-leave-to {
  opacity: 0;
  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 {
陈文彬 authored
74
75
76
77
78
79
80
81
  opacity: 0;
  transform: translateY(8%);
}

.fade-top-leave-to {
  opacity: 0;
  transform: translateY(-8%);
}