Debian Codegraph @

lib/animation/animate/_attention-seekers.scss

raw
1 // ---------------------------------------------------------------------------
2 @include keyframes(flash) {
3 0% {
4 opacity: 1; }
5 25% {
6 opacity: 0; }
7 50% {
8 opacity: 1; }
9 75% {
10 opacity: 0; }
11 100% {
12 opacity: 1; } }
13
14
15 // ---------------------------------------------------------------------------
16 @include keyframes(bounce) {
17 0% {
18 @include translateY(0); }
19 20% {
20 @include translateY(0); }
21 40% {
22 @include translateY(-30px); }
23 50% {
24 @include translateY(0); }
25 60% {
26 @include translateY(-15px); }
27 80% {
28 @include translateY(0); }
29 100% {
30 @include translateY(0); } }
31
32
33 // ---------------------------------------------------------------------------
34 @include keyframes(shake) {
35 0% {
36 @include translateX(0); }
37 10% {
38 @include translateX(-10px); }
39 20% {
40 @include translateX(10px); }
41 30% {
42 @include translateX(-10px); }
43 40% {
44 @include translateX(10px); }
45 50% {
46 @include translateX(-10px); }
47 60% {
48 @include translateX(10px); }
49 70% {
50 @include translateX(-10px); }
51 80% {
52 @include translateX(10px); }
53 90% {
54 @include translateX(-10px); }
55 100% {
56 @include translateX(0); } }
57
58
59 // ---------------------------------------------------------------------------
60 @include keyframes(tada) {
61 0% {
62 @include scale(1); }
63 10% {
64 @include transform(scale(0.9) rotate(-3deg)); }
65 20% {
66 @include transform(scale(0.9) rotate(-3deg)); }
67 30% {
68 @include transform(scale(1.1) rotate(3deg)); }
69 40% {
70 @include transform(scale(1.1) rotate(-3deg)); }
71 50% {
72 @include transform(scale(1.1) rotate(3deg)); }
73 60% {
74 @include transform(scale(1.1) rotate(-3deg)); }
75 70% {
76 @include transform(scale(1.1) rotate(3deg)); }
77 80% {
78 @include transform(scale(1.1) rotate(-3deg)); }
79 90% {
80 @include transform(scale(1.1) rotate(3deg)); }
81 100% {
82 @include transform(scale(1) rotate(0)); } }
83
84
85 // ---------------------------------------------------------------------------
86 @include keyframes(swing) {
87 20%, 40%, 60%, 80%, 100% {
88 @include transform-origin(top center); }
89 20% {
90 @include rotate(15deg); }
91 40% {
92 @include rotate(-10deg); }
93 60% {
94 @include rotate(5deg); }
95 80% {
96 @include rotate(-5deg); }
97 100% {
98 @include rotate(0deg); } }
99
100
101 // ---------------------------------------------------------------------------
102 @include keyframes(wobble) {
103 0% {
104 @include translateX(0%); }
105 15% {
106 @include transform(translateX(-25%) rotate(-5deg)); }
107 30% {
108 @include transform(translateX(20%) rotate(3deg)); }
109 45% {
110 @include transform(translateX(-15%) rotate(-3deg)); }
111 60% {
112 @include transform(translateX(10%) rotate(2deg)); }
113 75% {
114 @include transform(translateX(-5%) rotate(-1deg)); }
115 100% {
116 @include transform(translateX(0%)); } }
117
118
119 // ---------------------------------------------------------------------------
120 @include keyframes(pulse) {
121 0% {
122 @include scale(1); }
123 50% {
124 @include scale(1.1); }
125 100% {
126 @include scale(1); } }
127
128
129 // ---------------------------------------------------------------------------
130 @include keyframes(wiggle) {
131 0% {
132 @include skewX(9deg); }
133 10% {
134 @include skewX(-8deg); }
135 20% {
136 @include skewX(7deg); }
137 30% {
138 @include skewX(-6deg); }
139 40% {
140 @include skewX(5deg); }
141 50% {
142 @include skewX(-4deg); }
143 60% {
144 @include skewX(3deg); }
145 70% {
146 @include skewX(-2deg); }
147 80% {
148 @include skewX(1deg); }
149 90% {
150 @include skewX(0deg); }
151 100% {
152 @include skewX(0deg); } }