Split Open Text
上下に割れて開く
Generation Prompt
【対象要素】 - サイト内のテキスト1箇所(見出し・キャッチコピー・リード文等)に適用する 【演出内容】 - テキストを上半分と下半分に切り分け、それぞれ上下にずれた位置から中央へ寄って合体する - ぴたりと合わさった瞬間に1つの文字列として読めるようになる 【品質要件】 - 切り分けは文字の高さのちょうど中央で行う - ずれは上下14px程度。合体は0.8秒前後で、境目が残らないよう完全に重ねる - prefers-reduced-motion 時は演出を無効化し、最初から完成した状態で表示する - 演出中も文字が判読できなくなる時間を作らない。レイアウトを揺らさない
[Target element] - Apply to one piece of text on your site (a heading, a tagline, a lead paragraph, etc.) [Motion] - The text is cut into a top and a bottom half, which start offset vertically and move together to meet in the middle - It only becomes readable as one string at the instant the halves align [Quality requirements] - Cut exactly at the vertical center of the glyphs - Offset about 14px each way; join over about 0.8s and align perfectly so no seam remains - 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.