Stroke Draw Text
手書きストローク
Generation Prompt
【対象要素】 - サイト内のテキスト1箇所(見出し・キャッチコピー・リード文等)に適用する 【演出内容】 - 文字の輪郭が、ペンでなぞるように少しずつ描かれていく - 塗りは持たず、線だけで文字を成立させる 【品質要件】 - 描き切るまで2秒前後。長い文字列では時間がかかりすぎるので短い語に使う - 描き終わりで線が途切れたり二重になったりしないようにする - prefers-reduced-motion 時は演出を無効化し、最初から完成した状態で表示する - 演出中も文字が判読できなくなる時間を作らない。レイアウトを揺らさない
[Target element] - Apply to one piece of text on your site (a heading, a tagline, a lead paragraph, etc.) [Motion] - The outlines of the letterforms are drawn progressively, as if traced with a pen - There is no fill; the text is carried entirely by the stroke [Quality requirements] - Finish drawing in about 2s. Use it only on short strings, since longer ones take too long - Make sure the stroke neither breaks nor doubles back at the end - 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.