css3 :hover wont work after animation
问题 I have a DIV which changes bgcolor to blue when :hover. Button click adds class which animates bgcolor to green. But now :hover wont work (bgcolor wont change to blue). Why? http://jsfiddle.net/EstSiim/me7t055c/ HTML: <div class="box"></div> <button class="animate-btn">Animate</button> CSS: .box { background-color: red; width: 200px; height: 200px; } .box:hover { background-color: blue; } .trigger-bg-change { -webkit-animation: bg-change 1s ease 0 1 forwards; animation: bg-change 1s ease 0 1