Properties transition transition

Transition Properties: making an element change process visible
transition: all 1s; all elements of the change process are visible
transition: lS; all elements of the change process are visible
transition: specified attribute 2s 1s; specified attribute change process can be seen, the transition time 2s, delay 1s, transition time and time delay can not adjust the way

Case:

(1)html

<div></div>

(2)css

div{
width: 100px;
height: 100px;
background: red;
transition: width 2s,height 2s 1s;
}
div:hover{
width: 200px;
height: 200px;
background: lime;
}

Guess you like

Origin www.cnblogs.com/msw0803/p/11526195.html