Char Colorize On Scroll
進行で1文字ずつ着色
Generation Prompt
【対象要素】 - スクロールで見せるセクション1つ(見出し+図版・画像・カード等)に適用する 【演出内容】 - スクロールの進行に合わせて、コピーの文字が左から1文字ずつ本来の色に変わる - 読み進めた分だけ色が乗っていく 【品質要件】 - 文字は一切動かさず、色だけを変える - 未着色の文字も判読できる明度を保つ - prefers-reduced-motion 時は演出を無効化し、最初から完成した状態で表示する - スクロールを戻したときも進行に応じて巻き戻る(一度きりの再生にしない) - 図形は半透明(不透明度0.7程度)にして、背後の要素や文字を潰さない
[Target element] - Apply to one scroll-driven section on your site (a heading plus a figure, image, or cards) [Motion] - The characters of the copy take their true color one at a time from the left as the scroll advances - Color accumulates in step with how far you have read [Quality requirements] - Do not move the characters at all; change only the color - Keep the uncolored characters legible - When prefers-reduced-motion is set, disable the animation and show the finished state from the start - Scrolling back must rewind the animation in step with the scroll position (never a one-shot playback) - Keep shapes semi-transparent (around 0.7 opacity) so they never crush the content or text behind them
Prompts and demo code are free to use in your own projects. See About.