<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;
}

External CSS

  1. https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.3/css/bootstrap.min.css

External JavaScript

This Pen doesn't use any external JavaScript resources.