Blame view

src/design/transition/fade.less 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
.fade-transition {
  &-enter-active,
  &-leave-active {
    transition: opacity 0.2s ease-in-out;
  }

  &-enter-from,
  &-leave-to {
    opacity: 0;
  }
}
陈文彬 authored
13
14
.fade-enter-active,
.fade-leave-active {
15
  transition: opacity 0.2s ease-in-out;
陈文彬 authored
16
17
18
19
}

.fade-enter-from,
.fade-leave-to {
20
  opacity: 0;
陈文彬 authored
21
22
}
23
24
25
/* fade-slide */
.fade-slide-leave-active,
.fade-slide-enter-active {
vben authored
26
  transition: all 0.3s;
陈文彬 authored
27
28
}
29
.fade-slide-enter-from {
30
  opacity: 0;
vben authored
31
  transform: translateX(-30px);
陈文彬 authored
32
33
}
34
.fade-slide-leave-to {
35
  opacity: 0;
vben authored
36
  transform: translateX(30px);
陈文彬 authored
37
38
39
40
41
42
43
44
45
}

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

// Speed: 1x
.fade-bottom-enter-active,
.fade-bottom-leave-active {
vben authored
46
  transition: opacity 0.25s, transform 0.3s;
陈文彬 authored
47
48
}
vben authored
49
.fade-bottom-enter-from {
50
  opacity: 0;
vben authored
51
  transform: translateY(-10%);
陈文彬 authored
52
53
54
}

.fade-bottom-leave-to {
55
  opacity: 0;
vben authored
56
57
58
59
60
61
62
63
64
65
  transform: translateY(10%);
}

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

.fade-scale-enter-from {
66
  opacity: 0;
vben authored
67
68
69
70
  transform: scale(1.2);
}

.fade-scale-leave-to {
71
  opacity: 0;
vben authored
72
  transform: scale(0.8);
陈文彬 authored
73
74
75
76
77
78
79
80
81
}

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

// Speed: 1x
.fade-top-enter-active,
.fade-top-leave-active {
82
  transition: opacity 0.2s, transform 0.25s;
陈文彬 authored
83
84
}
85
.fade-top-enter-from {
86
  opacity: 0;
陈文彬 authored
87
88
89
90
  transform: translateY(8%);
}

.fade-top-leave-to {
91
  opacity: 0;
陈文彬 authored
92
93
  transform: translateY(-8%);
}