Diagonal Wipe
斜めワイプ
Generation Prompt
【対象要素】 - 一覧やギャラリーで見せる写真・カード1枚に適用する 【演出内容】 - 斜めの境界線が左から右へ走り、その後ろから写真が現れる - 傾いた境界が速度感を出す 【品質要件】 - 傾きは20〜30度。境界は常に上下いっぱいを横切らせる - 通り過ぎたあとに三角形の欠けを残さない - prefers-reduced-motion 時は演出を無効化し、最初から完成した状態で表示する - 表示しきってから一拍(0.3秒程度)おいて次のループに入る - カードは半透明(不透明度0.7程度)にして、背後の要素や文字を潰さない
[Target] - Apply to a single photo or card shown in a listing or gallery [Motion] - A slanted edge sweeps from left to right and the image appears behind it [Quality] - Use a 20-30 degree slant and keep the edge crossing the full height - Leave no triangular gap once it has passed - 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.