Wave In Text
波打ちながら出現
Generation Prompt
【対象要素】 - サイト内のテキスト1箇所(見出し・キャッチコピー・リード文等)に適用する 【演出内容】 - 文字が1つずつ下から現れ、行の位置を少し通り過ぎてから戻って落ち着く - 時間差で出るため、全体として波が右へ走っていくように見える 【品質要件】 - 行き過ぎは7px程度まで。大きくすると跳ねすぎて落ち着かない - 文字ごとの時間差は45ms前後 - prefers-reduced-motion 時は演出を無効化し、最初から完成した状態で表示する - 演出中も文字が判読できなくなる時間を作らない。レイアウトを揺らさない
[Target element] - Apply to one piece of text on your site (a heading, a tagline, a lead paragraph, etc.) [Motion] - Characters rise one at a time from below, overshoot the baseline slightly, then settle back onto it - Because they are staggered, a wave appears to travel to the right [Quality requirements] - Keep the overshoot to about 7px; more makes it feel unsettled - Stagger about 45ms per character - 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.