/ Published in: CSS
On hover the button will have a smooth transition to the hover colour, then fade out on mouse out.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
a { color: red; background-color: green; -webkit-transition: background-color 0.2s linear; -moz-transition: background-color 0.2s linear; transition: background-color 0.2s linear; } a:hover { background-color: blue; }