Character Colorize Text
1文字ずつ色が乗る
Generation Prompt
【対象要素】 - サイト内のテキスト1箇所(見出し・キャッチコピー・リード文等)に適用する 【演出内容】 - テキストは最初から表示されているが、色を落とした状態になっている - ホバーや表示のきっかけで、左から1文字ずつ本来の色が乗っていく 【品質要件】 - 文字は一切動かさず、色だけを変える - 色を落とした状態でも文字が判読できる明るさを保つ(消えたように見せない) - prefers-reduced-motion 時は演出を無効化し、最初から完成した状態で表示する - 演出中も文字が判読できなくなる時間を作らない。レイアウトを揺らさない
[Target element] - Apply to one piece of text on your site (a heading, a tagline, a lead paragraph, etc.) [Motion] - The text is visible from the start but drained of color - On the trigger, its true color washes in one character at a time from the left [Quality requirements] - Do not move the characters at all; change only the color - Keep the drained state bright enough to remain readable (it must not look absent) - 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.