<div></div>
div {
  background-color: black;
  height: 100px;
  transition: background-color 0.25s;
  width: 100px;
}

div:hover {
  background-color: lightgreen;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.