Edges In Text
両端から中央へ
Generation Prompt
【対象要素】 - サイト内のテキスト1箇所(見出し・キャッチコピー・リード文等)に適用する 【演出内容】 - 両端の文字が最初に現れ、中央に向かって順に埋まっていく - 最後に中央の文字が入り、締まった印象で完成する 【品質要件】 - 端からの距離に応じて時間差をつける(1文字ごとに44ms前後) - 左右で出現タイミングが対称になるようにする - prefers-reduced-motion 時は演出を無効化し、最初から完成した状態で表示する - 演出中も文字が判読できなくなる時間を作らない。レイアウトを揺らさない
[Target element] - Apply to one piece of text on your site (a heading, a tagline, a lead paragraph, etc.) [Motion] - The outermost characters appear first and the line fills inward toward the center - The middle character lands last, closing the line with a snap [Quality requirements] - Delay each character by its distance from the edge (about 44ms per step) - Keep the timing symmetrical on the left and right - 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.