Skip to content
IndexRequest a UIAboutContact

Media Card Hover Scrub

Move across a video card to scrub through its preview frames with a progress bar and time, or use the arrow keys.

Open alone ↗

AI prompt

PROMPT: PASTE INTO YOUR AI CODING TOOL
Clean UI mockup of a video grid card: a 16:9 thumbnail showing a sunrise over hills with a thin white progress bar along the bottom edge filled to about 40 percent, a small black timestamp pill 0:04 at the bottom right, below it a bold title Morning in the mountains and a grey line with channel and views, rounded corners, light theme, flat modern style. Negative: play button clutter, heavy shadows, text errors, device frames. Reduced motion: static design.

About this pattern

Definition

A scrub preview lets people skim a video without opening it: the pointer position across the thumbnail picks a frame and a thin bar shows where they are. It saves clicks on video grids and gives a good sense of the content.

Purpose & UX principles

  • Map horizontal position to a frame; show a progress bar and a timestamp.
  • Use a handful of prepared frames, not live video decoding.
  • Return to the poster frame when the pointer leaves.
  • Support keyboard: focus the card and use the left and right arrows.

Interaction states

  • One video card with eight frames; hover, drag or use arrow keys.

Motion specification

  • Frames switch instantly with the pointer.
  • Reduced motion: nothing animates; scrubbing still works as a direct control.

Responsive behaviour

  • On touch devices allow dragging across the thumbnail, or show a tap to preview.
  • Keep the title and metadata static so the card remains readable.

Code

HTML
<div class="bx"><div class="vc" id="vc" tabindex="0" role="slider" aria-label="Preview scrubber" aria-valuemin="0" aria-valuemax="7" aria-valuenow="0" aria-valuetext="Frame 1 of 8"><div class="fr" id="fr"><i class="sn"></i><i class="hl"></i></div><span class="tm" id="tm">0:00</span><b class="pb"><i id="pb"></i></b></div><div class="mt"><b>Morning in the mountains</b><span>Alpine Films · 1.2M views</span></div><p class="out">Move across the card, drag, or press the arrow keys.</p></div>

Related patterns

Hover Reveal Card

↗
Hover Reveal CardCards & Containers

Interactive Card

↗
Interactive CardCards & Containers

Range Slider

↗
Range SliderInputs & Forms