css3新特性(过渡)

60 阅读1分钟

过渡属性:谁做过渡就给谁加

image.png

image.png

image.png

//transition:width .5s ease 0s,height .5s ease 1s;
//如果想要写多个属性,利用逗号进行分割
//transition:width .5s,height .5s;
//如果想要多个属性都变化,属性写all就可以了
transition: all 0.5s;