_animations.scss 911 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. @mixin keyframes($animation-name) {
  2. @-webkit-keyframes #{$animation-name} {
  3. @content;
  4. }
  5. @-moz-keyframes #{$animation-name} {
  6. @content;
  7. }
  8. @-ms-keyframes #{$animation-name} {
  9. @content;
  10. }
  11. @-o-keyframes #{$animation-name} {
  12. @content;
  13. }
  14. @keyframes #{$animation-name} {
  15. @content;
  16. }
  17. }
  18. @mixin animation($str) {
  19. -webkit-animation: #{$str};
  20. -moz-animation: #{$str};
  21. -ms-animation: #{$str};
  22. -o-animation: #{$str};
  23. animation: #{$str};
  24. }
  25. .animate-height {
  26. max-height: 0;
  27. overflow: hidden;
  28. &--open {
  29. max-height: 1000px;
  30. overflow: auto;
  31. transition: max-height 250ms ease-in-out;
  32. }
  33. }
  34. @keyframes spin-clockwise {
  35. 0% {
  36. transform: rotate(0deg) scaleX(-1); // scaleX flips the `sync` icon so arrows point the correct way
  37. }
  38. 100% {
  39. transform: rotate(359deg) scaleX(-1);
  40. }
  41. }
  42. .spin-clockwise {
  43. animation: spin-clockwise 3s infinite linear;
  44. }