Character Depth Text
文字ごとに奥行き差
Generation Prompt
【対象要素】 - サイト内のテキスト1箇所(見出し・キャッチコピー・リード文等)に適用する 【演出内容】 - 文字が1つずつ、奥から手前へ飛んでくるように現れる - 奥行き方向の移動なので、文字が大きくなりながら定位置に収まる 【品質要件】 - 奥行きの移動量は260px程度、文字ごとの時間差は30ms - 遠近の基準点をテキストの中央に置き、端の文字が極端に歪まないようにする - prefers-reduced-motion 時は演出を無効化し、最初から完成した状態で表示する - 演出中も文字が判読できなくなる時間を作らない。レイアウトを揺らさない
[Target element] - Apply to one piece of text on your site (a heading, a tagline, a lead paragraph, etc.) [Motion] - Characters fly in one at a time from deep behind the screen toward the viewer - Because the motion is in depth, each glyph grows as it settles into place [Quality requirements] - Travel about 260px in depth, staggered about 30ms per character - Put the vanishing point at the center of the text so edge characters do not distort badly - 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.