Lightweight CSS Framework for Building Apps and Websites https://crispy-css.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
825 B

  1. /**
  2. * animation
  3. *
  4. *
  5. *
  6. * @author Björn Hase
  7. *
  8. */
  9. @mixin crispy-boilerplate-animation() {
  10. .--animation-rotate {
  11. animation: spin 3s linear infinite;
  12. @keyframes spin {
  13. to {
  14. transform: rotate(360deg);
  15. }
  16. }
  17. }
  18. .--animation-shake {
  19. animation: shake 0.82s cubic-bezier(.36,.07,.19,.97) both;
  20. transform: translate3d(0, 0, 0);
  21. @keyframes shake {
  22. 10%, 90% {
  23. transform: translate3d(-1px, 0, 0);
  24. }
  25. 20%, 80% {
  26. transform: translate3d(2px, 0, 0);
  27. }
  28. 30%, 50%, 70% {
  29. transform: translate3d(-4px, 0, 0);
  30. }
  31. 40%, 60% {
  32. transform: translate3d(4px, 0, 0);
  33. }
  34. }
  35. }
  36. }