Skip to content

Commit c682fc9

Browse files
committed
fix: animation
1 parent 29dac9c commit c682fc9

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

src/styles/mixins.scss

+16-15
Original file line numberDiff line numberDiff line change
@@ -300,25 +300,26 @@
300300
}
301301

302302
@mixin query-buttons-animations() {
303-
animation: errorAnimation 300ms 1;
303+
animation: errorAnimation 500ms linear;
304304

305305
@keyframes errorAnimation {
306-
0%,
307-
100% {
308-
transform: translate(0, 0) rotate(0deg);
306+
8%,
307+
41% {
308+
transform: translateX(-2px);
309+
}
310+
25%,
311+
58% {
312+
transform: translateX(2px);
309313
}
310-
10%,
311-
30%,
312-
50%,
313-
70%,
314-
90% {
315-
transform: translate(0, 0) rotate(-5deg);
314+
75% {
315+
transform: translateX(-1px);
316316
}
317-
20%,
318-
40%,
319-
60%,
320-
80% {
321-
transform: translate(0, 0) rotate(5deg);
317+
92% {
318+
transform: translateX(1px);
319+
}
320+
0%,
321+
100% {
322+
transform: translateX(0);
322323
}
323324
}
324325
}

0 commit comments

Comments
 (0)