AddThisFeature

Hover Video Preview

Hovering a video card plays a short silent clip so people see what it is before clicking.

simple Media & Video

What it adds

A silent, short-loop preview that plays inside a video card on deliberate hover and returns to the poster on exit.

What your agent is told to do

5
  1. 1

    Generate a short, low-resolution, silent preview clip during video processing and store it alongside the poster frame. Do not play the full source file behind the card.

  2. 2

    Require a deliberate hover before doing anything. Wait several hundred milliseconds after the pointer settles, then load, so a cursor crossing a grid does not fire a dozen requests.

  3. 3

    Give touch devices an explicit preview control on the card, since hover does not exist there. A long-press or a small preview button is fine; silently doing nothing on mobile is not.

  4. 4

    Keep the preview inside the card's existing reserved dimensions so nothing reflows. If the app has a Media Aspect Ratio System or Responsive Card Grid, honour those boxes rather than sizing the video independently.

  5. 5

    Do not treat this as a substitute for Image Lightbox or the full player. It is a glance, not a viewing experience, and it must never take over the card's click target.

Edge cases it handles

8
  • A pointer passing over a grid on its way elsewhere must not start loading. Delay the start, and if the pointer leaves before the clip begins, abort the request rather than letting it complete and play into an empty card.
  • Cancel in-flight preview requests when the pointer leaves early. Without cancellation a fast scroll through a grid leaves a queue of downloads competing with the page's real content.
  • Cap how many previews may load or play at once. A dense grid that starts eight videos will saturate a mobile connection and stall everything else on the page.
  • Returning to the poster frame must be clean. A preview that ends on a random frame, freezes on the last one, or flickers as it swaps back makes the whole grid feel broken.
  • Respect the reduced-motion preference. If the app has Reduced Motion Support, hook into it and skip autoplay entirely, offering the preview only on an explicit click.
  • Previews must stay silent regardless of the video's own audio track, and must never trigger the browser's autoplay-with-sound block.
  • A video whose preview clip has not been generated yet, or failed to generate, must simply keep showing its poster with no error and no dead hover state.
  • Pausing previews when the tab is hidden or the card scrolls out of view avoids burning battery on video nobody is looking at.

Definition of done

9
  • Hovering a card plays a short silent preview only after a deliberate delay.
  • Leaving early cancels the pending request and no preview appears.
  • Concurrent previews are capped so a grid does not saturate the connection.
  • Exiting a card returns cleanly to the poster frame with no flicker or frozen frame.
  • Touch devices get an explicit preview control instead of relying on hover.
  • Reduced-motion users get no autoplay.
  • Cards with no generated preview show their poster and behave normally.
  • The feature matches the existing design system.
  • No existing functionality is broken.

Related features

How it works

  1. 1

    Copy the link

    Grab the Markdown instruction URL for this feature.

  2. 2

    Give it to your AI

    Paste it into Claude Code, Cursor, v0, Lovable — whatever you build with.

  3. 3

    It inspects, then implements

    Your agent reads your existing app first, then adds the feature to fit it.

Works with your stack

These instructions are written to adapt. They tell the agent to detect your framework, match your existing design system, and reuse what you already have — rather than assuming a particular stack.

Need it tighter than that? Customize the feature and tell it exactly what you're running.