ホームページ  >  記事  >  ウェブフロントエンド  >  css3 属性のアニメーションを停止するにはどうすればよいですか、help_html/css_WEB-ITnose

css3 属性のアニメーションを停止するにはどうすればよいですか、help_html/css_WEB-ITnose

WBOY
WBOYオリジナル
2016-06-21 09:44:041379ブラウズ

CSS3 アニメーション HTML

<!DOCTYPE HTML><html><head>	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />	<title>Ball</title>	<style type="text/css">		*{ margin: 0;padding: 0; }		.imgBox{			-webkit-transform: scale(3);			-webkit-animation-name : 'wobble';			-webkit-animation-duration : 1.5s;			-webkit-animation-timing-function : ease-in-out;			-webkit-animation-delay : 2s;			-webkit-animation-iteration-count : 1;			-webkit-animation-direction: normal;		}		@-webkit-keyframes 'wobble'{			from{				-webkit-transform: scale(3.0);			}			to{				-webkit-transform: scale(1);			}		}							.wrap{ width: 500px;height: 500px;overflow:hidden;margin: 0 auto; }	</style></head><body><div class="wrap">	<div class="imgBox">		<img src="http://www.mjjq.com/blog/photos/Image/mjjq-photos-900.jpg" alt="">	</div></div><script type="text/javascript"></script></body></html>

最初の画像は 3 倍に拡大され、アニメーションが実行された後、画像の比率が 3 倍に戻されるのはなぜですか? secionsディスカッションへの返信(ソリューション)自分で検索できます
新しいブラウザ CSS3 アニメーション スタイルはキーワードを追加できます
アニメーションを定義した後、アニメーション スタイルの最後のスタイルを使用してレンダリングします

スペルを忘れました。自分で検索できます

お願いします。具体的な書き方を教えてください。そのような属性があるべきだと思います。そうでない場合は、jsを使用することは解決策ではありません

声明:
この記事の内容はネチズンが自主的に寄稿したものであり、著作権は原著者に帰属します。このサイトは、それに相当する法的責任を負いません。盗作または侵害の疑いのあるコンテンツを見つけた場合は、admin@php.cn までご連絡ください。