最初の2つの質問にはspecが答えています。ループへ
:animation-iteration-count: infinite;
と背景色をサイクリングは@keyframes
ルールを指定する必要が。
body { background: #0ff; }
@-webkit-keyframes blink {
0% { background: rgba(255,0,0,0.5); }
50% { background: rgba(255,0,0,0); }
100% { background: rgba(255,0,0,0.5); }
}
@keyframes blink {
0% { background: rgba(255,0,0,0.5); }
50% { background: rgba(255,0,0,0); }
100% { background: rgba(255,0,0,0.5); }
}
#animate {
height: 100px;
width: 100px;
background: rgba(255,0,0,1);
}
#animate {
-webkit-animation-direction: normal;
-webkit-animation-duration: 5s;
-webkit-animation-iteration-count: infinite;
-webkit-animation-name: blink;
-webkit-animation-timing-function: ease;
animation-direction: normal;
animation-duration: 5s;
animation-iteration-count: infinite;
animation-name: blink;
animation-timing-function: ease;
}
(適用可能なベンダー接頭辞を忘れないように!)
限りブラウザのサポートが行くように、私はあなたに詳細を伝えることができなかったが、いずれにしても私は機能をお勧めしますmodernizrとAを経由して検出JavaScriptのフォールバック。
ここにはWebkitで動作し、少なくともいくつかの要件を満たすexampleがあります。注:私はあなたが参照した効果の詳細がわからなかったので、私はMacを使用しません。
Internet Explorer 10は、CSS3のアニメーションとキーフレームでうまく動作します:-) – juFo