animations.css 2.1 KB

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