_animations.scss 2.0 KB

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