shake.css 270 B

1234567891011121314151617181920212223242526
  1. @keyframes shake {
  2. from,
  3. to {
  4. transform: translate3d(0, 0, 0);
  5. }
  6. 10%,
  7. 30%,
  8. 50%,
  9. 70%,
  10. 90% {
  11. transform: translate3d(-10px, 0, 0);
  12. }
  13. 20%,
  14. 40%,
  15. 60%,
  16. 80% {
  17. transform: translate3d(10px, 0, 0);
  18. }
  19. }
  20. .shake {
  21. animation-name: shake;
  22. }