Scatter and Rebuild Text
分解して再構成
Generation Prompt
【対象要素】 - サイト内のテキスト1箇所(見出し・キャッチコピー・リード文等)に適用する 【演出内容】 - 完成した状態のテキストが一度ばらばらに散り、そのまま元の位置へ戻って再び文字列になる - 散った状態から元へ戻る動きは一続きにし、途中で止めたり二段階に分けたりしない 【品質要件】 - 散るのに全体の4割、戻るのに6割の時間を配分し、戻りは減速させる - 散らばりの距離は前後80px程度、傾きは40度以内 - 文字は消さず、常に見えたまま位置だけを動かす - prefers-reduced-motion 時は演出を無効化し、最初から完成した状態で表示する - 演出中も文字が判読できなくなる時間を作らない。レイアウトを揺らさない
[Target element] - Apply to one piece of text on your site (a heading, a tagline, a lead paragraph, etc.) [Motion] - The fully formed text scatters apart and then returns to its original positions to become the string again - The scatter and the return are one continuous move; never pause or split it into two stages [Quality requirements] - Spend about 40% of the time scattering and 60% returning, decelerating on the return - Scatter within about 80px with rotation under 40 degrees - Never hide the characters; only their positions change - 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.