Word Rotate In Text
単語が回転して着地
Generation Prompt
【対象要素】 - サイト内のテキスト1箇所(見出し・キャッチコピー・リード文等)に適用する 【演出内容】 - 単語が少し傾いた状態から、水平に起き直りながら読む順に現れる - 回転の軸を単語の左下に置き、置かれるように着地させる 【品質要件】 - 傾きは10度前後まで。単語ごとの時間差は85ms - 着地時にわずかに行き過ぎてから止まる弾みをつける - prefers-reduced-motion 時は演出を無効化し、最初から完成した状態で表示する - 演出中も文字が判読できなくなる時間を作らない。レイアウトを揺らさない
[Target element] - Apply to one piece of text on your site (a heading, a tagline, a lead paragraph, etc.) [Motion] - Words appear in reading order, straightening from a slight tilt as they settle - Hinge the rotation at each word's lower left so it reads as being set down [Quality requirements] - Keep the tilt around 10 degrees, staggered about 85ms per word - Add a small overshoot on landing before it stops - 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.