ben-g
4/6/2017 - 9:36 PM

Transitions on links

Transitions on links

/*The all property applies the transition to all states 
of the element, i.e., focus, hover, active, etc. */

a.foo {
padding: 5px 10px;
background: #9c3;
-webkit-transition: all 0.3s ease;
-moz-transition: all 0.3s ease;
-o-transition: all 0.3s ease;
transition: all 0.3s ease;
  }

Excerpt From: Dan Cederholm. “CSS3 for Web Designers.” iBooks.