Two Cards Swap
2枚が位置を入れ替える
Generation Prompt
【対象要素】 - 並んだ写真・カード2枚に適用する 【演出内容】 - 並んだ2枚が弧を描きながらすれ違い、左右の位置を入れ替える - すれ違う瞬間だけ少し持ち上がる 【品質要件】 - 2枚の軌道は重ならないようにずらす - 入れ替わったあとの位置は元の2枚の位置とぴったり同じにする - prefers-reduced-motion 時は演出を無効化し、最初から完成した状態で表示する - 表示しきってから一拍(0.3秒程度)おいて次のループに入る - カードは半透明(不透明度0.7程度)にして、背後の要素や文字を潰さない
[Target] - Apply to a pair of photos or cards side by side [Motion] - Two cards arc past each other and swap left and right positions [Quality] - Offset the two arcs so they never collide - Land exactly on the other card's original position - When prefers-reduced-motion is set, disable the motion and show the finished state from the start - Let the motion finish completely, then pause for about 0.3s before the next loop - Keep the cards semi-transparent (around 0.7 opacity) so anything behind stays legible
Prompts and demo code are free to use in your own projects. See About.