.box {
width: 50px;
height: 50px;
background: red;
transition: width 0.5s ease, background 1s ease;
}

.box:hover {
width: 100px;
background: green;
}
