/ Published in: CSS
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
a.foo { padding: 5px 10px; background: #9c3; -webkit-transition: background 0.3s ease; -moz-transition: background 0.3s ease; -o-transition: background 0.3s ease; transition: background 0.3s ease; } a.foo:hover { background: #690; }
URL: http://www.alistapart.com/articles/understanding-css3-transitions/