1
正常工作,我的CSS过渡不会在Chrome中正常工作。它在Chrome中提供模糊效果,但在Firefox中运行良好。CSS过渡不会在Chrome
这里是code snippet为圆动画。我建议在Chrome浏览器和屏幕的最大宽度中查看此内容。
下面是HTML:
<button>Inflate!</button>
<div class='bubble'></div>
CSS:
.bubble {
position: relative;
left: 50px;
top: 20px;
transform: scale(1);
width: 50px;
height: 50px;
border-radius: 50%;
background-color: #C00;
transition-origin: center;
transition: all 0.5s;
overflow: hidden;
}
.bubble.animate {
transform: scale(30);
}
.bubble.ani {
transform: scale(1);
}
的JavaScript(jQuery的):
$('button').click(function() {
$('.bubble').addClass('animate');
});
$('.buuble').click(function() {
$(this).removeClass('animate');
$(this).addClass('ani');
});