0
單擊按鈕啓動AJAX調用時,按鈕中將顯示微調器。當AJAX回調函數完成時,微調器被移除。像FireFox 29中的冠軍一樣旋轉,Chrome 34.0.1847.132中沒有動畫。該圖標顯示然後隱藏,但不旋轉。Firefox中的按鈕微調器不能在Chrome中旋轉
.spinner {
position: absolute;
left: 2vw;
top: 2;
opacity: 0;
max-width: 0;
-webkit-transition: opacity 0.25s, max-width 0.45s;
-moz-transition: opacity 0.25s, max-width 0.45s;
-o-transition: opacity 0.25s, max-width 0.45s;
transition: opacity 0.25s, max-width 0.45s;
}
.has-spinner.active {
cursor:progress;
}
.has-spinner.active .spinner {
opacity: 1;
max-width: 50px;
}
.icon-refresh-animate {
animation-name: rotateThis;
animation-duration: .5s;
animation-iteration-count: infinite;
animation-timing-function: linear;
}
@keyframes rotateThis {
from { transform: scale(1) rotate(0deg); }
to { transform: scale(1) rotate(360deg); }
}
@-webkit-keyframes rotateThis {
from { transform: scale(1) rotate(0deg); }
to { transform: scale(1) rotate(360deg); }
}
感謝您的期待。
謝謝你做到了。我有很多要了解的CSS。 –