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参数:
第一个参数为过渡所需要时间,第二个参数为延迟时间,第三个参数为需要执行过渡的样式。
不同的样式之间用英文逗号隔开。