<div class="box"></div>
.box {
  background-color: #f00;
  width: 100px;
  height: 100px;
  transition-duration: 2s;
}

.box:hover {
  background-color: #00f;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.