-
Notifications
You must be signed in to change notification settings - Fork 62
/
Copy path_animations.scss
81 lines (71 loc) · 1.42 KB
/
_animations.scss
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
@keyframes sd-slide-from-left {
0% {
transform: translateX(-100%);
}
100% {
transform: translateX(0);
}
}
@keyframes sd-slide-from-right {
0% {
transform: translateX(200%);
}
100% {
transform: translateX(0);
}
}
@keyframes sd-grow100 {
0% {
transform: scale(0);
opacity: 0.5;
}
100% {
transform: scale(1);
opacity: 1;
}
}
@keyframes sd-grow50 {
0% {
transform: scale(0.5);
opacity: 0.5;
}
100% {
transform: scale(1);
opacity: 1;
}
}
@keyframes sd-grow50-rot20 {
0% {
transform: scale(0.5) rotateZ(-20deg);
opacity: 0.5;
}
75% {
transform: scale(1) rotateZ(5deg);
opacity: 1;
}
95% {
transform: scale(1) rotateZ(-1deg);
opacity: 1;
}
100% {
transform: scale(1) rotateZ(0);
opacity: 1;
}
}
// animation is shorthand for 'animation-' properties:
// duration | easing-function | delay | iteration-count | direction | fill-mode | play-state | name
.sd-animate-slide-from-left {
animation: 1s ease-out 0s 1 normal none running sd-slide-from-left;
}
.sd-animate-slide-from-right {
animation: 1s ease-out 0s 1 normal none running sd-slide-from-right;
}
.sd-animate-grow100 {
animation: 1s ease-out 0s 1 normal none running sd-grow100;
}
.sd-animate-grow50 {
animation: 1s ease-out 0s 1 normal none running sd-grow50;
}
.sd-animate-grow50-rot20 {
animation: 1s ease-out 0s 1 normal none running sd-grow50-rot20;
}