コマンドリファレンス / 演出
@keyframe
@kanim で使うアニメーションに名前を付けて定義する。キーフレームは「割合% 項目=値 …」を ; で区切って一行に並べる
標準のプラグイン名前なしのパラメータ:
name@keyframe sway frames="0% rotate=0; 50% rotate=8 x=12; 100% rotate=0"パラメータ
| 名前 | 型 | 既定 | 説明 |
|---|---|---|---|
name必須 | 文字列 | — | アニメーションの名前 |
frames必須 | 文字列 | — | キーフレーム(例: "0% x=0; 50% x=40 rotate=15deg opacity=0.5; 100% x=0")。変形は x、y(px)、scale、scale-x、scale-y、rotate、rotate-x、rotate-y、rotate-z、skew、skew-x、skew-y、perspective、ほかは CSS のプロパティ |