| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261 |
- @charset "utf-8";
- /*动态点赞开始*/
- .praise{
- width:30px;
- height:30px;
- cursor: pointer;
- font-size: 12px;
- text-align:center;
- position: relative;
- }
- #praise{
- display:block;
- width:30px;
- height:30px;
- margin:0 auto;
- }
- #praise-txt{
- /* height:25px;
- line-height:25px;
- display: block;*/
- }
- .praise img{
- width:20px;
- height:20px;
- display:block;
- margin: 0 auto;
- }
- .praise img.animation{
- animation: myfirst 0.5s;
- -moz-animation: myfirst 0.5s; /* Firefox */
- -webkit-animation: myfirst 0.5s; /* Safari 和 Chrome */
- -o-animation: myfirst 0.5s; /* Opera */
- }
- #add-num{
- display:none;
- }
- #add-num .add-animation{
- color: #000;
- position:absolute;
- top:-15px;
- left: 10px;
- font-size: 15px;
- opacity: 0;
- filter: Alpha(opacity=0);
- -moz-opacity:0;
- animation: mypraise 0.5s ;
- -moz-animation: mypraise 0.5s ; /* Firefox */
- -webkit-animation: mypraise 0.5s ; /* Safari 和 Chrome */
- -o-animation: mypraise 0.5s ; /* Opera */
- font-style:normal;
- }
- .praise .hover , #add-num .add-animation.hover , #praise-txt.hover{
- color: #EB4F38;
- }
- /*点赞图标放大动画开始*/
- @keyframes myfirst
- {
- 0%{
- width:40px;
- height:40px;
- }
- 50%{
- width:50px;
- height:50px;
- }
- 100% {
- width:40px;
- height:40px;
- }
- }
- @-moz-keyframes myfirst /* Firefox */
- {
- 0%{
- width:40px;
- height:40px;
- }
- 50%{
- width:50px;
- height:50px;
- }
- 100% {
- width:40px;
- height:40px;
- }
- }
- @-webkit-keyframes myfirst /* Safari 和 Chrome */
- {
- 0%{
- width:40px;
- height:40px;
- }
- 50%{
- width:50px;
- height:50px;
- }
- 100% {
- width:40px;
- height:40px;
- }
- }
- @-o-keyframes myfirst /* Opera */
- {
- 0%{
- width:40px;
- height:40px;
- }
- 50%{
- width:50px;
- height:50px;
- }
- 100% {
- width:40px;
- height:40px;
- }
- }
- /*点赞图标放大动画结束*/
- /*点赞数量加减动画开始*/
- @keyframes mypraise
- {
- 0%{
- top:-15px;
- opacity: 0;
- filter: Alpha(opacity=0);
- -moz-opacity:0;
- }
- 25%{
- top:-20px;
- opacity: 0.5;
- filter: Alpha(opacity=50);
- -moz-opacity:0.5;
- }
- 50%{
- top:-25px;
- opacity: 1;
- filter: Alpha(opacity=100);
- -moz-opacity:1;
- }
- 75%{
- top:-30px;
- opacity: 0.5;
- filter: Alpha(opacity=50);
- -moz-opacity:0.5;
- }
- 100% {
- top:-35px;
- opacity: 0;
- filter: Alpha(opacity=0);
- -moz-opacity:0;
- }
- }
- @-moz-keyframes mypraise /* Firefox */
- {
- 0%{
- top:-15px;
- opacity: 0;
- filter: Alpha(opacity=0);
- -moz-opacity:0;
- }
- 25%{
- top:-20px;
- opacity: 0.5;
- filter: Alpha(opacity=50);
- -moz-opacity:0.5;
- }
- 50%{
- top:-25px;
- opacity: 1;
- filter: Alpha(opacity=100);
- -moz-opacity:1;
- }
- 75%{
- top:-30px;
- opacity: 0.5;
- filter: Alpha(opacity=50);
- -moz-opacity:0.5;
- }
- 100% {
- top:-35px;
- opacity: 0;
- filter: Alpha(opacity=0);
- -moz-opacity:0;
- }
- }
- @-webkit-keyframes mypraise /* Safari 和 Chrome */
- {
- 0%{
- top:-15px;
- opacity: 0;
- filter: Alpha(opacity=0);
- -moz-opacity:0;
- }
- 25%{
- top:-20px;
- opacity: 0.5;
- filter: Alpha(opacity=50);
- -moz-opacity:0.5;
- }
- 50%{
- top:-25px;
- opacity: 1;
- filter: Alpha(opacity=100);
- -moz-opacity:1;
- }
- 75%{
- top:-30px;
- opacity: 0.5;
- filter: Alpha(opacity=50);
- -moz-opacity:0.5;
- }
- 100% {
- top:-35px;
- opacity: 0;
- filter: Alpha(opacity=0);
- -moz-opacity:0;
- }
- }
- @-o-keyframes mypraise /* Opera */
- {
- 0%{
- top:-15px;
- opacity: 0;
- filter: Alpha(opacity=0);
- -moz-opacity:0;
- }
- 25%{
- top:-20px;
- opacity: 0.5;
- filter: Alpha(opacity=50);
- -moz-opacity:0.5;
- }
- 50%{
- top:-25px;
- opacity: 1;
- filter: Alpha(opacity=100);
- -moz-opacity:1;
- }
- 75%{
- top:-30px;
- opacity: 0.5;
- filter: Alpha(opacity=50);
- -moz-opacity:0.5;
- }
- 100% {
- top:-35px;
- opacity: 0;
- filter: Alpha(opacity=0);
- -moz-opacity:0;
- }
- }
- /*点赞数量加减动画结束*/
- /*动态点赞结束*/
|