_animations.scss 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. /* Animation Setter ------------------------------------------------*/
  2. .fadeIn {
  3. animation-name: fadeIn;
  4. animation-duration: .3s;
  5. animation-fill-mode: forwards;
  6. animation-timing-function: $timing;
  7. }
  8. .fadeOut {
  9. animation-name: fadeOut;
  10. animation-duration: .3s;
  11. animation-fill-mode: forwards;
  12. animation-timing-function: $timing;
  13. }
  14. /* moveUp ------------------------------------------------*/
  15. @keyframes moveUp {
  16. 0% {
  17. transform: translateY(100px);
  18. opacity: 0;
  19. }
  20. 100% {
  21. transform: translateY(0);
  22. opacity: 1;
  23. }
  24. }
  25. /* fadeIn ------------------------------------------------*/
  26. @keyframes fadeIn {
  27. 0% {
  28. opacity: 0;
  29. }
  30. 100% {
  31. opacity: 1;
  32. }
  33. }
  34. /* fadeOut ------------------------------------------------*/
  35. @keyframes fadeOut {
  36. 0% {
  37. opacity: 1;
  38. }
  39. 100% {
  40. opacity: 0;
  41. }
  42. }
  43. /* moveBackground ------------------------------------------------*/
  44. @keyframes moveBackground {
  45. 0% {
  46. background-position-x: 0px;
  47. }
  48. 100% {
  49. background-position-x: -100px;
  50. }
  51. }
  52. /* zoomIn ------------------------------------------------*/
  53. @keyframes zoomIn {
  54. 0% {
  55. opacity: 0;
  56. transform: scale(.8);
  57. }
  58. 100% {
  59. opacity: 1;
  60. transform: scale(1);
  61. }
  62. }
  63. /* zoomOut ------------------------------------------------*/
  64. @keyframes zoomOut {
  65. 0% {
  66. opacity: 1;
  67. transform: scale(1);
  68. }
  69. 100% {
  70. opacity: 0;
  71. transform: scale(.8);
  72. }
  73. }
  74. /* popIn ------------------------------------------------*/
  75. @keyframes popIn {
  76. 0% {
  77. opacity: 0;
  78. transform: scale(0);
  79. }
  80. 100% {
  81. opacity: 1;
  82. transform: scale(1);
  83. }
  84. }
  85. /* pulse ------------------------------------------------*/
  86. @keyframes pulse {
  87. 0% {
  88. opacity: 1;
  89. }
  90. 50% {
  91. opacity: .3;
  92. }
  93. 100% {
  94. opacity: 1;
  95. }
  96. }