<div class="box"></div>
.box {
  width: 100px;
  height: 100px;
  background-color: lightblue;
  transition: width 0.4s ease-in-out;
}

.box:hover {
  width: 200px;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.