css3 transitions


/ Published in: CSS
Save to your folder(s)



Copy this code and paste it in your HTML
  1. a.foo {
  2. padding: 5px 10px;
  3. background: #9c3;
  4. -webkit-transition: background 0.3s ease;
  5. -moz-transition: background 0.3s ease;
  6. -o-transition: background 0.3s ease;
  7. transition: background 0.3s ease;
  8. }
  9. a.foo:hover {
  10. background: #690;
  11. }

URL: http://www.alistapart.com/articles/understanding-css3-transitions/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.