<div></div>
div {
    background-color: red;
    width: 200px;
    height: 200px;
    transition: background-color 0.5s ease;
}

div:hover {
    background-color: blue;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.