Skew Straighten Text
斜体から正立
Generation Prompt
【対象要素】 - サイト内のテキスト1箇所(見出し・キャッチコピー・リード文等)に適用する 【演出内容】 - 強く傾いた状態から、傾きが戻りながら正しい位置に収まる - 傾きが戻る動きに横移動を添えて、勢いを出す 【品質要件】 - 傾きは20度前後から0へ、時間は0.75秒 - 傾いた状態でも文字が判読できる範囲に留める - 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 starts strongly slanted and straightens into position - A horizontal drift accompanies the straightening to add momentum [Quality requirements] - Skew from about 20 degrees to 0 over about 0.75s - Keep the slanted state readable - 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.