Skip to content

Commit b99c248

Browse files
authored
style: error animation (#8)
1 parent a60c051 commit b99c248

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

src/styles/components/_errormessage.scss

+19
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,23 @@
88
font-weight: 500;
99
text-align: center;
1010
width: 100%;
11+
animation: vibrate 0.1s;
12+
animation-iteration-count: 3;
1113
}
14+
15+
$pixelPath: 2px;
16+
17+
@keyframes vibrate {
18+
0% {
19+
transform: translateX(0);
20+
}
21+
25% {
22+
transform: translateX(-$pixelPath);
23+
}
24+
75% {
25+
transform: translateX($pixelPath);
26+
}
27+
100% {
28+
transform: translateX(0);
29+
}
30+
}

0 commit comments

Comments
 (0)