You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

179 lines
2.4 KiB

  1. /* css 滤镜 控制黑白底色gif的 */
  2. .gif-black{
  3. mix-blend-mode: screen;
  4. }
  5. .gif-white{
  6. mix-blend-mode: multiply;
  7. }
  8. /* Animation css */
  9. [class*=animation-] {
  10. animation-duration: .5s;
  11. animation-timing-function: ease-out;
  12. animation-fill-mode: both
  13. }
  14. .animation-fade {
  15. animation-name: fade;
  16. animation-duration: .8s;
  17. animation-timing-function: linear
  18. }
  19. .animation-scale-up {
  20. animation-name: scale-up
  21. }
  22. .animation-scale-down {
  23. animation-name: scale-down
  24. }
  25. .animation-slide-top {
  26. animation-name: slide-top
  27. }
  28. .animation-slide-bottom {
  29. animation-name: slide-bottom
  30. }
  31. .animation-slide-left {
  32. animation-name: slide-left
  33. }
  34. .animation-slide-right {
  35. animation-name: slide-right
  36. }
  37. .animation-shake {
  38. animation-name: shake
  39. }
  40. .animation-reverse {
  41. animation-direction: reverse
  42. }
  43. @keyframes fade {
  44. 0% {
  45. opacity: 0
  46. }
  47. 100% {
  48. opacity: 1
  49. }
  50. }
  51. @keyframes scale-up {
  52. 0% {
  53. opacity: 0;
  54. transform: scale(.2)
  55. }
  56. 100% {
  57. opacity: 1;
  58. transform: scale(1)
  59. }
  60. }
  61. @keyframes scale-down {
  62. 0% {
  63. opacity: 0;
  64. transform: scale(1.8)
  65. }
  66. 100% {
  67. opacity: 1;
  68. transform: scale(1)
  69. }
  70. }
  71. @keyframes slide-top {
  72. 0% {
  73. opacity: 0;
  74. transform: translateY(-100%)
  75. }
  76. 100% {
  77. opacity: 1;
  78. transform: translateY(0)
  79. }
  80. }
  81. @keyframes slide-bottom {
  82. 0% {
  83. opacity: 0;
  84. transform: translateY(100%)
  85. }
  86. 100% {
  87. opacity: 1;
  88. transform: translateY(0)
  89. }
  90. }
  91. @keyframes shake {
  92. 0%,
  93. 100% {
  94. transform: translateX(0)
  95. }
  96. 10% {
  97. transform: translateX(-9px)
  98. }
  99. 20% {
  100. transform: translateX(8px)
  101. }
  102. 30% {
  103. transform: translateX(-7px)
  104. }
  105. 40% {
  106. transform: translateX(6px)
  107. }
  108. 50% {
  109. transform: translateX(-5px)
  110. }
  111. 60% {
  112. transform: translateX(4px)
  113. }
  114. 70% {
  115. transform: translateX(-3px)
  116. }
  117. 80% {
  118. transform: translateX(2px)
  119. }
  120. 90% {
  121. transform: translateX(-1px)
  122. }
  123. }
  124. @keyframes slide-left {
  125. 0% {
  126. opacity: 0;
  127. transform: translateX(-100%)
  128. }
  129. 100% {
  130. opacity: 1;
  131. transform: translateX(0)
  132. }
  133. }
  134. @keyframes slide-right {
  135. 0% {
  136. opacity: 0;
  137. transform: translateX(100%)
  138. }
  139. 100% {
  140. opacity: 1;
  141. transform: translateX(0)
  142. }
  143. }