_animation.scss 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /* Animation Mixins */
  2. @keyframes dropdownAnimation {
  3. from {
  4. opacity: 0;
  5. transform: translate3d(0, -30px, 0);
  6. }
  7. to {
  8. opacity: 1;
  9. transform: none;
  10. transform: translate3d(0, 0px, 0);
  11. }
  12. }
  13. .dropdownAnimation {
  14. animation-name: dropdownAnimation;
  15. @include animation-duration($action-transition-duration);
  16. @include animation-fill-mode(both);
  17. }
  18. @mixin transition($settings) {
  19. -webkit-transition: $settings;
  20. -moz-transition: $settings;
  21. -ms-transition: $settings;
  22. -o-transition: $settings;
  23. transition: $settings;
  24. }
  25. @keyframes fadeOut {
  26. from {
  27. opacity: 1;
  28. }
  29. to {
  30. opacity: 0;
  31. }
  32. }
  33. .fadeOut {
  34. animation-name: fadeOut;
  35. }
  36. .infinite-spin {
  37. @keyframes spin {
  38. from {
  39. transform: rotate(0deg);
  40. }
  41. to {
  42. transform: rotate(360deg);
  43. }
  44. }
  45. animation-name: spin;
  46. animation-duration: 3s;
  47. animation-iteration-count: infinite;
  48. animation-timing-function: linear;
  49. }
  50. @keyframes fadeInUp {
  51. from {
  52. opacity: 0;
  53. transform: translate3d(0, 100%, 0);
  54. }
  55. to {
  56. opacity: 1;
  57. transform: none;
  58. }
  59. }
  60. .fadeInUp {
  61. animation-name: fadeInUp;
  62. }