Gradient Loop Text
グラデが文字内を流れる
Generation Prompt
【対象要素】 - サイト内のテキスト1箇所(見出し・キャッチコピー・リード文等)に適用する 【演出内容】 - 複数色のグラデーションが文字の内側を横へ流れ続ける - 文字の形は変えず、塗りの色だけが移り変わる 【品質要件】 - 1周は4秒前後。色は3〜4色までにし、両端を同じ色にして継ぎ目を消す - どの瞬間でも背景とのコントラストを確保する - prefers-reduced-motion 時は演出を無効化し、最初から完成した状態で表示する - 演出中も文字が判読できなくなる時間を作らない。レイアウトを揺らさない
[Target element] - Apply to one piece of text on your site (a heading, a tagline, a lead paragraph, etc.) [Motion] - A multi-color gradient flows sideways through the inside of the glyphs, looping continuously - The letterforms never change; only the color of the fill moves [Quality requirements] - One pass takes about 4s. Use three or four colors and repeat the first color at the end so the loop has no seam - Maintain contrast against the background at every moment - 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.