问题
I am creating a static website and I tried putting a background-color transition on a button. I checked my code several times and then I realized that it's not my code. The whole browser displays CSS transitions poorly. Some don't animate at all, some only show the initial and final stage after I click on them several times. I tried visiting the same sites from my computer and from different computers and I'm sure it's my browser's fault.
I emptied the cache and deleted the cookies. What can I do to fix this problem?
EDIT: Here is my code
<p id="more"><a href="#">Read more</a></p>
#more a {
display: block;
width: 100px;
padding: 5px 10px;
border-left: 2px solid #1bb2b2;
margin-top: 10px;
background-color: white;
transition: background-color 2s ease-in-out;
-moz-transition: background-color 2s ease-in-out;
-webkit-transition: background-color 2s ease-in-out;
-o-transition: background-color 2s ease-in-out;
}
#more:hover a { color: white; background-color: #1bb2b2;}
EDI2: Just downloaded Firefox and the transition on my site and on every other site work perfectly. What is wrong with my Chrome?
回答1:
This seems to be the same as chromium issue 451756 and the same issue that I asked about in this question.
It appears to be fixed in Chrome version 40.0.2214.115.
来源:https://stackoverflow.com/questions/28264789/chrome-wont-display-css-transitions-properly-how-can-i-fix-this