_animations.scss 1.7 KB

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