all background
0.5s 2s
#s1Div { width: 100px; height: 50px; background: purple; transition: width 0.2s ease-in 0.5s, height 0.2s linear 1s, background 0.2s ease-out 1.5s, color 0.2s linear 2.0s; } #s1Div:hover { transition: width 0.2s ease-in 0.5s, height 0.2s linear 1s, background 0.2s ease-out 1.5s, color 0.2s linear 2.0s; width: 200px; height: 100px; background: blue; color: red; }
s2P
#s2Div { width: 100px; height: 50px; background: black; color: white; overflow: hidden; transition: 0.5s, } #s2Div p { margin-top: 30px; transition: 0.5s; } #s2Div:hover p{ transition: margin-top 0.2s ease-in 1s; margin-top: 0px; }