Demo 1: replace / add / accumulate の違いを比較
3つのボックスは全て基本値 translateX(30px) を持ち、同じアニメーション translateX(80px) が適用されます。compositionモードの違いで動きが変わります。
replace
R
add
A
accumulate
Ac
ボタンをクリックしてアニメーションを開始してください。
Demo 2: 回転 + 移動の合成
回転と移動を同時に適用したとき、replaceモードとaddモードで動きがどう違うか比較できます。
CSS
Demo 3: パルス + バウンス
パルス(拡大縮小)とバウンス(跳ねる)を個別に、そしてaddで合成した場合を並べて比較します。
3
pulse のみ
3
bounce のみ
3
pulse + bounce(add合成)