We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60c13b3 commit 2622a35Copy full SHA for 2622a35
snippets/css/animations/shake-animation.md
@@ -0,0 +1,27 @@
1
+---
2
+title: Shake Animation
3
+description: Adds a shake animation ( commonly used to mark invalid fields )
4
+author: AlsoKnownAs-Ax
5
+tags: css,animation
6
7
+
8
+```css
9
+.shake {
10
+ animation: shake .5s ease-in-out;
11
+}
12
13
+@keyframes shake {
14
+ 0%, 100% {
15
+ transform: translateX(0);
16
+ }
17
+ 25% {
18
+ transform: translateX(-10px);
19
20
+ 50% {
21
+ transform: translateX(10px);
22
23
+ 75% {
24
25
26
27
+```
0 commit comments