MOTION PALETTE
← 検索結果に戻るモーション図鑑 / 8-1

Fill Sweep Button

塗り走査ボタン

ホバーで背景色が端から走査線のように塗り潰し、文字色が反転する

FORM / OBJECTS

THE EVERYDAY COLLECTION

Good design.
In every detail.

CONSIDERED. NOT COMPLICATED.
MADE FOR EVERYDAYEST. 2026

再生で動きを確認。もう一度見るときは「最初から再生」を押してください。

こんな場面に

操作できる場所と、操作した結果をすぐに伝えたいとき。

使うときの判断

動きでクリック対象を逃がさない。キーボードとタッチでも同じ操作を完了できるように。

IMPLEMENTATION

実装レシピ

CSSのみ。`background:linear-gradient(#000,#000) no-repeat 0 100%/0% 100%`→hoverで`100% 100%`(またはbackground-position走査)

実装難易度
実装の目安
CSSのみ
収録範囲
説明・指示書・MCP同梱の実装例

同梱の実装例は、組み込み先で表示・操作を確認してください。

記述の近い参考サイト

調査メモの関連語から抽出しています。採用技法の確認には元の調査記録と実際のサイトを参照してください。現在の表現は調査時点と異なる場合があります。

YOUR PROMPT

調整した値を確認する

実装指示書の全文を開く
Implement the following web visual TECHNIQUE as a small, self-contained demo (single HTML file, inline CSS/JS; GSAP via CDN is allowed if it fits the recipe). Invent your own placeholder content (original text/shapes/colors) — do NOT copy any existing site's content or branding.

## Technique: Fill Sweep Button (塗り走査ボタン)

What happens: ホバーで背景色が端から走査線のように塗り潰し、文字色が反転する

## Implementation recipe (normative)

CSSのみ。`background:linear-gradient(#000,#000) no-repeat 0 100%/0% 100%`→hoverで`100% 100%`(またはbackground-position走査)

## Timing values chosen by the user (normative — use these exact values)

- Easing: `cubic-bezier(0.22, 1, 0.36, 1)`
- Base duration: 1.30s
- Intensity 1/5: Keep amplitudes minimal (2-8px movements, opacity-led, no overshoot) — the motion should be barely-there and elegant.

## Quality bar

- Runs at 60fps; animate only transform/opacity/filter where possible.
- Make the initial state legible immediately. Preserve the full timing above, including deliberately slow transitions. Repeat only when the recipe calls for a loop; give finite effects a clear ending and replay action.
- Respect prefers-reduced-motion: show a legible resting state without autoplay. Keep every operation available through keyboard and touch; allow deliberate playback of the effect for inspection.
- Difficulty reference: 低. If the recipe mentions specific libraries or shader work, follow it rather than substituting a simpler approach.

コピーできない環境では、指示書を選択・保存する画面が開きます。