_animations.scss 2.0 KB

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