答案 0 :(得分:-1)
显然,我错过了你想要的脉冲效果,可能就像旧的闪烁标签一样。此更新示例使用CSS动画,但也有其他替代方法。
@keyframes pulse {
from { opacity: 1 }
to { opacity: 0 }
}
.fade:hover {
animation-name: pulse;
animation-duration: 500ms;
animation-iteration-count: infinite;
animation-direction: alternate;
animation-timing-function: ease-in-out;
}
<div class="fade">Fade On Hover</div>