1
ChromeでCSSの移行が正常に動作しません。 Chromeではぼかし効果を与えていますが、Firefoxではうまく動作します。ChromeでCSSトランジションが正常に動作しない
円アニメーションの場合は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');
});