我正試圖將Internet Explorer中的回退放在一個元素上。用於懸停動畫的IE回退
在Chrome中,元素pops
和外觀整潔,但不是在IE :(
目前有一種時間延遲出現的背景顏色之前。
我猜-webkit-animation-name
是我的問題的根源。
<div class="effects">
<a class="hvr-pop" href="#">Pop</a>
</div>
/* Pop */
@-webkit-keyframes hvr-pop {
50% {
-webkit-transform: scale(1.2);
transform: scale(1.2);
}
}
@keyframes hvr-pop {
50% {
-webkit-transform: scale(1.2);
transform: scale(1.2);
}
}
.hvr-pop {
display: inline-block;
vertical-align: middle;
-webkit-transform: translateZ(0);
transform: translateZ(0);
box-shadow: 0 0 1px rgba(0, 0, 0, 0);
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
-moz-osx-font-smoothing: grayscale;
}
.hvr-pop:hover, .hvr-pop:focus, .hvr-pop:active {
-webkit-animation-name: hvr-pop;
animation-name: hvr-pop;
-webkit-animation-duration: 0.3s;
animation-duration: 0.3s;
-webkit-animation-timing-function: linear;
animation-timing-function: linear;
-webkit-animation-iteration-count: 1;
animation-iteration-count: 1;
}
請註明出現此問題的IE版本。經過IE11測試,與Chrome相同。 – Serlite
@Serlite好主意!在IE11中有這個問題:-) – michaelmcgurk
你知道你的小提琴不包含任何css動畫嗎? – somethinghere