<div class="container d-flex">
<div class="box transition1"></div>
<div class="box transition2"></div>
</div>
.box{
width: 150px;
height: 150px;
background: pink;
margin:10px;
}
.box:hover{
background: red;
height: 200px;
}
.transition1{
transition: .5s;
}
.transition2{
transition: height .5s, background 1s;
}
This Pen doesn't use any external JavaScript resources.