vue.ani-style.scss
2.0 KB
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
/**
* vue版本动画内置的动画模式有如下:
* fade:淡入
* zoom:缩放
* fade-zoom:缩放淡入
* fade-up:上滑淡入
* fade-down:下滑淡入
* fade-left:左滑淡入
* fade-right:右滑淡入
* slide-up:上滑进入
* slide-down:下滑进入
* slide-left:左滑进入
* slide-right:右滑进入
*/
$u-zoom-scale: scale(0.95);
.u-fade-enter-active,
.u-fade-leave-active {
transition-property: opacity;
}
.u-fade-enter,
.u-fade-leave-to {
opacity: 0
}
.u-fade-zoom-enter,
.u-fade-zoom-leave-to {
transform: $u-zoom-scale;
opacity: 0;
}
.u-fade-zoom-enter-active,
.u-fade-zoom-leave-active {
transition-property: transform, opacity;
}
.u-fade-down-enter-active,
.u-fade-down-leave-active,
.u-fade-left-enter-active,
.u-fade-left-leave-active,
.u-fade-right-enter-active,
.u-fade-right-leave-active,
.u-fade-up-enter-active,
.u-fade-up-leave-active {
transition-property: opacity, transform;
}
.u-fade-up-enter,
.u-fade-up-leave-to {
transform: translate3d(0, 100%, 0);
opacity: 0
}
.u-fade-down-enter,
.u-fade-down-leave-to {
transform: translate3d(0, -100%, 0);
opacity: 0
}
.u-fade-left-enter,
.u-fade-left-leave-to {
transform: translate3d(-100%, 0, 0);
opacity: 0
}
.u-fade-right-enter,
.u-fade-right-leave-to {
transform: translate3d(100%, 0, 0);
opacity: 0
}
.u-slide-down-enter-active,
.u-slide-down-leave-active,
.u-slide-left-enter-active,
.u-slide-left-leave-active,
.u-slide-right-enter-active,
.u-slide-right-leave-active,
.u-slide-up-enter-active,
.u-slide-up-leave-active {
transition-property: transform;
}
.u-slide-up-enter,
.u-slide-up-leave-to {
transform: translate3d(0, 100%, 0)
}
.u-slide-down-enter,
.u-slide-down-leave-to {
transform: translate3d(0, -100%, 0)
}
.u-slide-left-enter,
.u-slide-left-leave-to {
transform: translate3d(-100%, 0, 0)
}
.u-slide-right-enter,
.u-slide-right-leave-to {
transform: translate3d(100%, 0, 0)
}
.u-zoom-enter-active,
.u-zoom-leave-active {
transition-property: transform
}
.u-zoom-enter,
.u-zoom-leave-to {
transform: $u-zoom-scale
}