<button>test</button>
button {
  width: 80px;
  height: 50px;
transition: background-color 0.5s;
}

button:hover {
background-color: blue;
}
Run Pen

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.