transition

.box{width:100px;height:100px;background:red; transition:1s width,2s height,3s 3s background;}
.box:hover{width:500px;height:300px;background:blue;}

transition参数:

第一个参数为过渡所需要时间,第二个参数为延迟时间,第三个参数为需要执行过渡的样式。

不同的样式之间用英文逗号隔开。

 

 
posted on 2015-03-24 13:18  toodeep  阅读(108)  评论(0)    收藏  举报