Shine Sweep Text
光が表面を通過
Generation Prompt
【対象要素】 - サイト内のテキスト1箇所(見出し・キャッチコピー・リード文等)に適用する 【演出内容】 - 暗く落としたテキストの上を、明るい光の帯が斜めに通り抜けていく - 帯が通った部分だけが本来の明るさで見える 【品質要件】 - 通過は3秒周期。連続で光らせず、通過と通過の間に静かな時間を作る - ベースの暗い状態でも文字が読める明度を保つ - prefers-reduced-motion 時は演出を無効化し、最初から完成した状態で表示する - 演出中も文字が判読できなくなる時間を作らない。レイアウトを揺らさない
[Target element] - Apply to one piece of text on your site (a heading, a tagline, a lead paragraph, etc.) [Motion] - A bright band of light sweeps diagonally across text that is otherwise dimmed - Only the part the band crosses is shown at full brightness [Quality requirements] - Sweep on a 3s cycle, leaving quiet time between passes rather than glinting constantly - Keep the dimmed base bright enough to stay readable - 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.