Components / Surfaces and motion / Hover intent

M2 · Surfaces and motion New

Hover intent

Details stay hidden until the pointer dwells 220 ms within 4 px. A fast pass does not reveal them.

When to use

  • Extra detail would crowd the idle state.
  • A glance past the row should not flash the detail.

When not to use

  • The detail is required to complete the task.
  • Touch is the only pointer. Put the detail behind a button.

Usage

<div data-hover-zone tabindex="0">
  <p>Quiet record</p>
  <p class="sub">Hidden until hover.</p>
</div>

Variants

The preview shows the form used in the gallery.

Props

NameTypeDefaultDescription
dwell220 ms220 msHow long the pointer must settle.
slop4 px4 pxMovement beyond this restarts the dwell.
data-hover-panelregionhiddenThe revealed details.

Keyboard

KeyAction
TabFocus reveals the details immediately.
Shift TabLeaves the zone and hides them.

Accessibility

Motion

Pattern origin

Pattern type: a reveal after a 220 ms dwell, with 4 px of pointer slop.

Related

TooltipExpandable island