[英]Overriding transition-delay issue on Firefox
我有问题要覆盖在Firefox上的过渡延迟。 下面的示例按预期在Chrome和IE中正常运行,但在Firefox中,在动画延迟之前可以正常工作。 在动画开始之前,我无法覆盖Firefox上的过渡延迟。 我相信这是一个错误,但是此问题的解决方法是什么?
这是HTML代码
<button>move</button>
<div class="box"></div>
Java脚本
$('button').click(function(){
$('.box').addClass('move').on('transitionend',function(){
$(this).removeClass('move');
});
});
和CSS
.box{
height:100px;
width:100px;
background-color:yellow;
transition:all 1s ease 1s;
position:absolute;
left:0;
}
.move{
transition-delay:0;
left:500px;
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.