Character Fade Text
1文字ずつフェード
Generation Prompt
【対象要素】 - サイト内のテキスト1箇所(見出し・キャッチコピー・リード文等)に適用する 【演出内容】 - 文字が1つずつ、左から順に時間差で現れる - 位置は動かさず、不透明度だけで出す 【品質要件】 - 文字ごとの時間差は38ms前後、1文字あたりの表示は0.5秒 - 文字数が多い場合は時間差を詰め、全体が2秒以内に出そろうようにする - prefers-reduced-motion 時は演出を無効化し、最初から完成した状態で表示する - 演出中も文字が判読できなくなる時間を作らない。レイアウトを揺らさない
[Target element] - Apply to one piece of text on your site (a heading, a tagline, a lead paragraph, etc.) [Motion] - Characters appear one at a time, in order from the left, each on a slight delay - Nothing moves; the reveal is carried purely by opacity [Quality requirements] - Stagger about 38ms per character, 0.5s per character - For long strings, tighten the stagger so everything is out within 2 seconds - 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.