ke_animation.css 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  1. /*文字- 从上渐变到下动画 */
  2. .animation-slide-top {
  3. -webkit-animation-name: slide-top;
  4. -o-animation-name: slide-top;
  5. animation-name: slide-top;
  6. }
  7. /*盒子- 从下渐变到上动画 */
  8. .animation-slide-bottom50 {
  9. -webkit-animation-name: slide-bottom50;
  10. animation-name: slide-bottom50;
  11. }
  12. /*盒子- 从左渐变到右动画 */
  13. .animation-slide-left {
  14. -webkit-animation-name: slide-left;
  15. -o-animation-name: slide-left;
  16. animation-name: slide-left;
  17. }
  18. /*盒子- 从右渐变到左动画 */
  19. .animation-slide-right {
  20. -webkit-animation-name: slide-right;
  21. -o-animation-name: slide-right;
  22. animation-name: slide-right;
  23. }
  24. /* 盒子- 从左边底部弹上来 */
  25. .animation-poput-left {
  26. -webkit-animation-name: poput-left;
  27. -o-animation-name: poput-left;
  28. animation-name: poput-left;
  29. }
  30. /* 盒子- 从右边底部弹上来 */
  31. .animation-poput-right {
  32. -webkit-animation-name: poput-right;
  33. -o-animation-name: poput-right;
  34. animation-name: poput-right;
  35. }
  36. /* 盒子- 从果冻般放大放小 */
  37. .animation-bounceln {
  38. -webkit-animation-name: bounceln;
  39. -o-animation-name: bounceln;
  40. animation-name: bounceln;
  41. }
  42. .p-animation-backgroudcolor {
  43. -webkit-animation-name: backgroudcolor;
  44. -o-animation-name: backgroudcolor;
  45. animation-name: backgroudcolor;
  46. }
  47. /* 全局-动画渐变速度 */
  48. [class*=animation-] {
  49. -webkit-animation-duration: 1s;
  50. -o-animation-duration: 1s;
  51. animation-duration: 1s;
  52. -webkit-animation-timing-function: ease-out;
  53. -o-animation-timing-function: ease-out;
  54. animation-timing-function: ease-out;
  55. -webkit-animation-fill-mode: both;
  56. -o-animation-fill-mode: both;
  57. animation-fill-mode: both;
  58. }
  59. [class*="animation-"] {
  60. animation-fill-mode: none;
  61. }
  62. /* 文字-从上渐变到下动画 */
  63. @keyframes slide-top {
  64. 0% {
  65. opacity: 0;
  66. -webkit-transform: translate3d(0, -100%, 0);
  67. transform: translate3d(0, -100%, 0);
  68. }
  69. 100% {
  70. opacity: 1;
  71. -webkit-transform: translate3d(0, 0, 0);
  72. transform: translate3d(0, 0, 0);
  73. }
  74. }
  75. /*盒子- 从下渐变到上动画 */
  76. @keyframes slide-bottom50 {
  77. 0% {
  78. opacity: 0;
  79. -webkit-transform: translate3d(0, 100%, 0);
  80. transform: translate3d(0, 100%, 0);
  81. }
  82. 100% {
  83. opacity: 1;
  84. -webkit-transform: translate3d(0, 0, 0);
  85. transform: translate3d(0, 0, 0);
  86. }
  87. }
  88. /*盒子- 从左渐变到右动画 */
  89. @keyframes slide-left {
  90. 0% {
  91. opacity: 0;
  92. -webkit-transform: translate3d(-100%, 0, 0);
  93. transform: translate3d(-100%, 0, 0);
  94. }
  95. 100% {
  96. opacity: 1;
  97. -webkit-transform: translate3d(0, 0, 0);
  98. transform: translate3d(0, 0, 0);
  99. }
  100. }
  101. /*盒子- 从右渐变到左动画 */
  102. @keyframes slide-right {
  103. 0% {
  104. opacity: 0;
  105. -webkit-transform: translate3d(100%, 0, 0);
  106. transform: translate3d(100%, 0, 0);
  107. }
  108. 100% {
  109. opacity: 1;
  110. -webkit-transform: translate3d(0, 0, 0);
  111. transform: translate3d(0, 0, 0);
  112. }
  113. }
  114. /* 盒子- 从左边底部弹上来 */
  115. @keyframes poput-left {
  116. 0% {
  117. opacity: 0;
  118. -webkit-transform: scale3d(.1, .1, .1) translate3d(-1000px, 0, 0);
  119. -ms-transform: scale3d(.1, .1, .1) translate3d(-1000px, 0, 0);
  120. transform: scale3d(.1, .1, .1) translate3d(-1000px, 0, 0);
  121. -webkit-animation-timing-function: cubic-bezier(0.55, .055, .675, .19);
  122. animation-timing-function: cubic-bezier(0.55, .055, .675, .19);
  123. }
  124. 60% {
  125. opacity: 1;
  126. -webkit-transform: scale3d(.475, .475, .475) translate3d(10px, 0, 0);
  127. -ms-transform: scale3d(.475, .475, .475) translate3d(10px, 0, 0);
  128. transform: scale3d(.475, .475, .475) translate3d(10px, 0, 0);
  129. -webkit-animation-timing-function: cubic-bezier(0.175, .885, .32, 1);
  130. animation-timing-function: cubic-bezier(0.175, .885, .32, 1);
  131. }
  132. }
  133. /* 盒子- 从右边底部弹上来 */
  134. @keyframes poput-right {
  135. 0% {
  136. opacity: 0;
  137. -webkit-transform: scale3d(.1, .1, .1) translate3d(1000px, 0, 0);
  138. -ms-transform: scale3d(.1, .1, .1) translate3d(1000px, 0, 0);
  139. transform: scale3d(.1, .1, .1) translate3d(1000px, 0, 0);
  140. -webkit-animation-timing-function: cubic-bezier(0.55, .055, .675, .19);
  141. animation-timing-function: cubic-bezier(0.55, .055, .675, .19);
  142. }
  143. 60% {
  144. opacity: 1;
  145. -webkit-transform: scale3d(.475, .475, .475) translate3d(-10px, 0, 0);
  146. -ms-transform: scale3d(.475, .475, .475) translate3d(-10px, 0, 0);
  147. transform: scale3d(.475, .475, .475) translate3d(-10px, 0, 0);
  148. -webkit-animation-timing-function: cubic-bezier(0.175, .885, .32, 1);
  149. animation-timing-function: cubic-bezier(0.175, .885, .32, 1);
  150. }
  151. }
  152. /* 盒子- 从果冻般放大放小 */
  153. @keyframes bounceln {
  154. 0%,
  155. 100%,
  156. 20%,
  157. 40%,
  158. 60%,
  159. 80% {
  160. -webkit-transition-timing-function: cubic-bezier(0.215, .61, .355, 1);
  161. transition-timing-function: cubic-bezier(0.215, .61, .355, 1);
  162. }
  163. 0% {
  164. opacity: 0;
  165. -webkit-transform: scale3d(.3, .3, .3);
  166. -ms-transform: scale3d(.3, .3, .3);
  167. transform: scale3d(.3, .3, .3);
  168. }
  169. 20% {
  170. -webkit-transform: scale3d(1.1, 1.1, 1.1);
  171. -ms-transform: scale3d(1.1, 1.1, 1.1);
  172. transform: scale3d(1.1, 1.1, 1.1);
  173. }
  174. 40% {
  175. -webkit-transform: scale3d(.9, .9, .9);
  176. -ms-transform: scale3d(.9, .9, .9);
  177. transform: scale3d(.9, .9, .9);
  178. }
  179. 60% {
  180. opacity: 1;
  181. -webkit-transform: scale3d(1.03, 1.03, 1.03);
  182. -ms-transform: scale3d(1.03, 1.03, 1.03);
  183. transform: scale3d(1.03, 1.03, 1.03);
  184. }
  185. 80% {
  186. -webkit-transform: scale3d(.97, .97, .97);
  187. -ms-transform: scale3d(.97, .97, .97);
  188. transform: scale3d(.97, .97, .97);
  189. }
  190. 100% {
  191. opacity: 1;
  192. -webkit-transform: scale3d(1, 1, 1);
  193. -ms-transform: scale3d(1, 1, 1);
  194. transform: scale3d(1, 1, 1);
  195. }
  196. }
  197. /* 盒子- 背景颜色移动 */
  198. @keyframes backgroudcolor {
  199. 0% {
  200. opacity: 1;
  201. -webkit-transform: translate3d(-100%, 0, 0);
  202. transform: translate3d(-100%, 0, 0);
  203. }
  204. 50% {
  205. opacity: 1;
  206. -webkit-transform: translate3d(0, 0, 0);
  207. transform: translate3d(0, 0, 0);
  208. }
  209. 100% {
  210. opacity: 1;
  211. -webkit-transform: translate3d(100%, 0, 0);
  212. transform: translate3d(100%, 0, 0);
  213. }
  214. }