Press Down Button
プレスダウン
Generation Prompt
【対象要素】 - サイト内のボタン1点(CTA・リンクボタン・フォームの送信ボタン等)に適用する 【演出内容】 - 通常時はボタンの下に厚みを表す影があり、物理的なキーのように見える - ホバーすると厚みの分だけボタンが沈み込み、影が消えて押し込まれた状態になる 【品質要件】 - 沈む量と厚みの量を一致させ、面が台座に接地したように見せる - 変化時間は0.2〜0.3秒。押した感触を出すため速めにする - prefers-reduced-motion 時は演出を無効化し、状態変化だけが分かる静的表示にフォールバックする - ラベルの可読性を落とさない。文字が読めなくなる瞬間を作らない
[Target element] - Apply to a single button on your site (a CTA, a link button, a form submit button, etc.) [Motion] - At rest a shadow beneath the button represents its thickness, like a physical key - On hover the button sinks by exactly that thickness and the shadow disappears, leaving it pressed in [Quality requirements] - Match the travel distance to the thickness so the surface reads as landing on its base - Duration 0.2-0.3s; keep it quick so the press feels tactile - When prefers-reduced-motion is set, disable the animation and fall back to a static state change - Never reduce the legibility of the label; do not create a moment where the text cannot be read
Prompts and demo code are free to use in your own projects. See About.