Word Rotator Text
単語が入れ替わり続ける
Generation Prompt
【対象要素】 - サイト内のテキスト1箇所(見出し・キャッチコピー・リード文等)に適用する 【演出内容】 - 同じ位置で単語が次々に入れ替わり続ける - 出ていく語は上へ抜け、入る語は下から来るので、常に一方向に流れて見える 【品質要件】 - 1語の表示時間は1.5〜2秒。切り替えは0.3秒程度で行う - 語の数だけ繰り返したら最初へ戻り、間隔が乱れないようにする - prefers-reduced-motion 時は演出を無効化し、最初から完成した状態で表示する - 演出中も文字が判読できなくなる時間を作らない。レイアウトを揺らさない
[Target element] - Apply to one piece of text on your site (a heading, a tagline, a lead paragraph, etc.) [Motion] - Words replace one another continuously in the same position - The outgoing word exits upward and the incoming one enters from below, so it always flows one way [Quality requirements] - Hold each word 1.5-2s and take about 0.3s to switch - After cycling through the list, return to the first with the interval unchanged - 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.