Rotating Arc Text
円形テキストが回る
Generation Prompt
【対象要素】 - スクロールで見せるセクション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] - Text set along a circular path rotates as the scroll advances - The whole string rotates while each glyph stays correctly oriented on the curve [Quality requirements] - Rotate about half a turn; use generous letter spacing so the characters do not crowd on the arc - Scrolling back rotates it the other way - 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.