Accent Last Line Text
最終行だけ遅れて強調
Generation Prompt
【対象要素】 - サイト内のテキスト1箇所(見出し・キャッチコピー・リード文等)に適用する 【演出内容】 - 上の行から順にマスクで現れ、最後の1行だけ明確に間を置いてから現れる - 最終行はアクセント色にして、結論やキーワードとして立たせる 【品質要件】 - 通常行の時間差は110ms、最終行だけ0.2秒ほど余分に空ける - 強調するのは最終行1つだけにする(複数を強調すると効果が薄れる) - prefers-reduced-motion 時は演出を無効化し、最初から完成した状態で表示する - 演出中も文字が判読できなくなる時間を作らない。レイアウトを揺らさない
[Target element] - Apply to one piece of text on your site (a heading, a tagline, a lead paragraph, etc.) [Motion] - Lines are revealed from the top down with a mask, and the final line arrives after a clear pause - The final line takes the accent color so it reads as the conclusion or the keyword [Quality requirements] - Stagger normal lines about 110ms and hold the last one about 0.2s longer - Emphasize only one line (emphasizing several dilutes the effect) - When prefers-reduced-motion is set, disable the animation and show the finished state from the start - Never let the text become unreadable during the animation, and never shift the surrounding layout
Prompts and demo code are free to use in your own projects. See About.