Back to Dictionary
Data & Content Visualization
●●○Customize

Directional Hover Card

A picture or content card that detects the exact edge (top, right, bottom, left) the mouse cursor enters from, and slides an information overlay in from that specific direction. It exits out the same edge the mouse leaves.

Live Demo

Portfolio Image

Project Apollo

A deep dive into spatial UI elements and directional awareness.

View Case

left edge detection

What It Is

A picture or content card that detects the exact edge (top, right, bottom, left) the mouse cursor enters from, and slides an information overlay in from that specific direction. It exits out the same edge the mouse leaves.

When to Use

  • Rich portfolio image galleries
  • E-commerce product grids

When NOT to Use

  • Text-heavy informative tables
  • Mobile-first designs lacking hover states

Configuration Tips

  • 01Calculate the angle of the mouse entry relative to the center of the element to determine which of the 4 quadrants the mouse crossed.

You've Seen It In

Creative Agency PortfoliosAwwwards Winners

Prompt Templates

Copy and paste these prompts into your AI coding assistant.

Create a card that detects mouse entry direction using trigonometry and slides an overlay div in from that corresponding side.

Code Example (Tailwind CSS)

export function DirectionalHoverCardDemo() {}