好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

比较css3中transition和animation的区别与联系

** 做了很久的项目了, transition 和 animation 两个css3属性经常被用到实际项目当中,想想把它整理出来。如下:

1:先介绍transition:

a,在做项目中经常会遇见这样的情景,比如一个按钮,当鼠标移入进去的时候改变按钮背景颜色以及字体颜色,此时我们一般会这么做:

.btn{width: 80px;height: 25px;border: 1px solid #333;color:#333;text-align: center;line-height: 25px;} 

.btn:hover{background:green;color:white;} 

查看更多关于比较css3中transition和animation的区别与联系的详细内容...

  阅读:46次