Scramble Decode Text
スクランブル解読
Generation Prompt
【対象要素】 - サイト内のテキスト1箇所(見出し・キャッチコピー・リード文等)に適用する 【演出内容】 - 全文字がランダムな記号や英字に置き換わった状態から始まり、左から順に正しい文字へ確定していく - 未確定の文字は毎フレーム別の文字に入れ替わり続ける 【品質要件】 - 確定しきるまで0.5〜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] - Every character starts as a random symbol or letter, then resolves into the correct text from the left - Unresolved characters keep changing on every frame [Quality requirements] - Resolve within 0.5-0.8s. Keep the character count identical throughout - Use monospaced characters so the width does not jitter while resolving - 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.