dianzan.css 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  1. @charset "utf-8";
  2. /*动态点赞开始*/
  3. .praise{
  4. width:30px;
  5. height:30px;
  6. cursor: pointer;
  7. font-size: 12px;
  8. text-align:center;
  9. position: relative;
  10. }
  11. #praise{
  12. display:block;
  13. width:30px;
  14. height:30px;
  15. margin:0 auto;
  16. }
  17. #praise-txt{
  18. /* height:25px;
  19. line-height:25px;
  20. display: block;*/
  21. }
  22. .praise img{
  23. width:20px;
  24. height:20px;
  25. display:block;
  26. margin: 0 auto;
  27. }
  28. .praise img.animation{
  29. animation: myfirst 0.5s;
  30. -moz-animation: myfirst 0.5s; /* Firefox */
  31. -webkit-animation: myfirst 0.5s; /* Safari 和 Chrome */
  32. -o-animation: myfirst 0.5s; /* Opera */
  33. }
  34. #add-num{
  35. display:none;
  36. }
  37. #add-num .add-animation{
  38. color: #000;
  39. position:absolute;
  40. top:-15px;
  41. left: 10px;
  42. font-size: 15px;
  43. opacity: 0;
  44. filter: Alpha(opacity=0);
  45. -moz-opacity:0;
  46. animation: mypraise 0.5s ;
  47. -moz-animation: mypraise 0.5s ; /* Firefox */
  48. -webkit-animation: mypraise 0.5s ; /* Safari 和 Chrome */
  49. -o-animation: mypraise 0.5s ; /* Opera */
  50. font-style:normal;
  51. }
  52. .praise .hover , #add-num .add-animation.hover , #praise-txt.hover{
  53. color: #EB4F38;
  54. }
  55. /*点赞图标放大动画开始*/
  56. @keyframes myfirst
  57. {
  58. 0%{
  59. width:40px;
  60. height:40px;
  61. }
  62. 50%{
  63. width:50px;
  64. height:50px;
  65. }
  66. 100% {
  67. width:40px;
  68. height:40px;
  69. }
  70. }
  71. @-moz-keyframes myfirst /* Firefox */
  72. {
  73. 0%{
  74. width:40px;
  75. height:40px;
  76. }
  77. 50%{
  78. width:50px;
  79. height:50px;
  80. }
  81. 100% {
  82. width:40px;
  83. height:40px;
  84. }
  85. }
  86. @-webkit-keyframes myfirst /* Safari 和 Chrome */
  87. {
  88. 0%{
  89. width:40px;
  90. height:40px;
  91. }
  92. 50%{
  93. width:50px;
  94. height:50px;
  95. }
  96. 100% {
  97. width:40px;
  98. height:40px;
  99. }
  100. }
  101. @-o-keyframes myfirst /* Opera */
  102. {
  103. 0%{
  104. width:40px;
  105. height:40px;
  106. }
  107. 50%{
  108. width:50px;
  109. height:50px;
  110. }
  111. 100% {
  112. width:40px;
  113. height:40px;
  114. }
  115. }
  116. /*点赞图标放大动画结束*/
  117. /*点赞数量加减动画开始*/
  118. @keyframes mypraise
  119. {
  120. 0%{
  121. top:-15px;
  122. opacity: 0;
  123. filter: Alpha(opacity=0);
  124. -moz-opacity:0;
  125. }
  126. 25%{
  127. top:-20px;
  128. opacity: 0.5;
  129. filter: Alpha(opacity=50);
  130. -moz-opacity:0.5;
  131. }
  132. 50%{
  133. top:-25px;
  134. opacity: 1;
  135. filter: Alpha(opacity=100);
  136. -moz-opacity:1;
  137. }
  138. 75%{
  139. top:-30px;
  140. opacity: 0.5;
  141. filter: Alpha(opacity=50);
  142. -moz-opacity:0.5;
  143. }
  144. 100% {
  145. top:-35px;
  146. opacity: 0;
  147. filter: Alpha(opacity=0);
  148. -moz-opacity:0;
  149. }
  150. }
  151. @-moz-keyframes mypraise /* Firefox */
  152. {
  153. 0%{
  154. top:-15px;
  155. opacity: 0;
  156. filter: Alpha(opacity=0);
  157. -moz-opacity:0;
  158. }
  159. 25%{
  160. top:-20px;
  161. opacity: 0.5;
  162. filter: Alpha(opacity=50);
  163. -moz-opacity:0.5;
  164. }
  165. 50%{
  166. top:-25px;
  167. opacity: 1;
  168. filter: Alpha(opacity=100);
  169. -moz-opacity:1;
  170. }
  171. 75%{
  172. top:-30px;
  173. opacity: 0.5;
  174. filter: Alpha(opacity=50);
  175. -moz-opacity:0.5;
  176. }
  177. 100% {
  178. top:-35px;
  179. opacity: 0;
  180. filter: Alpha(opacity=0);
  181. -moz-opacity:0;
  182. }
  183. }
  184. @-webkit-keyframes mypraise /* Safari 和 Chrome */
  185. {
  186. 0%{
  187. top:-15px;
  188. opacity: 0;
  189. filter: Alpha(opacity=0);
  190. -moz-opacity:0;
  191. }
  192. 25%{
  193. top:-20px;
  194. opacity: 0.5;
  195. filter: Alpha(opacity=50);
  196. -moz-opacity:0.5;
  197. }
  198. 50%{
  199. top:-25px;
  200. opacity: 1;
  201. filter: Alpha(opacity=100);
  202. -moz-opacity:1;
  203. }
  204. 75%{
  205. top:-30px;
  206. opacity: 0.5;
  207. filter: Alpha(opacity=50);
  208. -moz-opacity:0.5;
  209. }
  210. 100% {
  211. top:-35px;
  212. opacity: 0;
  213. filter: Alpha(opacity=0);
  214. -moz-opacity:0;
  215. }
  216. }
  217. @-o-keyframes mypraise /* Opera */
  218. {
  219. 0%{
  220. top:-15px;
  221. opacity: 0;
  222. filter: Alpha(opacity=0);
  223. -moz-opacity:0;
  224. }
  225. 25%{
  226. top:-20px;
  227. opacity: 0.5;
  228. filter: Alpha(opacity=50);
  229. -moz-opacity:0.5;
  230. }
  231. 50%{
  232. top:-25px;
  233. opacity: 1;
  234. filter: Alpha(opacity=100);
  235. -moz-opacity:1;
  236. }
  237. 75%{
  238. top:-30px;
  239. opacity: 0.5;
  240. filter: Alpha(opacity=50);
  241. -moz-opacity:0.5;
  242. }
  243. 100% {
  244. top:-35px;
  245. opacity: 0;
  246. filter: Alpha(opacity=0);
  247. -moz-opacity:0;
  248. }
  249. }
  250. /*点赞数量加减动画结束*/
  251. /*动态点赞结束*/