アニメーション実行の前後に適用されるスタイル設定モード。
名前 | animation-fill-mode
|
---|---|
値 | <single-animation-fill-mode># |
初期値 | none |
適用対象 | すべての要素 |
継承 | されない |
百分率 | 受容しない |
算出値 | リスト: 各アイテムは 指定されたキーワードを与える |
正準的順序 | 文法に従う |
アニメーション型 | アニメート不可 |
animation-fill-mode プロパティは、アニメーション実行の時間外に適用される値を定義する。既定(初期値 none)では、アニメーションは、次に挙げる期間においては、プロパティ値には影響しない:
animation-fill-mode プロパティにより、このふるまいを上書きできる。また、このプロパティが動的に更新されたときは、アニメーションの遅延の段階/終止した後、いずれの間かに従って、必要に応じて【アニメーションが適用される】各プロパティ値にも反映されることになる。
以下のCSSが組み込んであります:
none
<DIV style="border:1px solid black; width:200px; height:50px; "> <DIV style="position:relative; width:25px; height:25px; background:red; left:0px; top:0px; animation-name:Test; animation-timing-function:linear; animation-duration:5s; animation-fill-mode:none; "></DIV> </DIV>
forwards
<DIV style="border:1px solid black; width:200px; height:50px; "> <DIV style="position:relative; width:25px; height:25px; background:red; left:0px; top:0px; animation-name:Test; animation-timing-function:linear; animation-duration:5s; animation-fill-mode:forwards; "></DIV> </DIV>
backwards
<DIV style="border:1px solid black; width:200px; height:50px; "> <DIV style="position:relative; width:25px; height:25px; background:red; left:0px; top:0px; animation-name:Test; animation-timing-function:linear; animation-delay:3s; animation-duration:5s; animation-fill-mode:backwards; "></DIV> </DIV>
both
<DIV style="border:1px solid black; width:200px; height:50px; "> <DIV style="position:relative; width:25px; height:25px; background:red; left:0px; top:0px; animation-name:Test; animation-timing-function:linear; animation-delay:3s; animation-duration:5s; animation-fill-mode:both; "></DIV> </DIV>
表示内容: |
表示内容: |