Skip to content

Hover Follower

The HoverFollower component allows elements to follow the mouse cursor on hover, creating interactive visual effects.
It is useful for dashboards, galleries, cards, or any component that benefits from responsive, dynamic movement.

  • Interactive motion: Elements follow the cursor for a dynamic feel.
  • Flexible layout: Supports horizontal or vertical orientation and flexible wrapping.
  • Custom styling: Background color, gap, and alignment can be customized.
  • Composable: Works with any component, such as cards, images, or text blocks.

test

test

test

test

test 0

test 0

test 1

test 1

test 2

test 2

test 3

test 3

test 4

test 4

PropTypeDefaultDescription
orientation"horizontal" | "vertical""vertical"Determines the layout direction of the follower elements.
bgColorstring""Background color applied to the follower container.
stylestring""Inline styles for layout, spacing, or alignment.
childrenRequiredElements that will follow the cursor on hover.
  • Use lightweight elements to maintain performance during hover movement.
  • Keep consistent spacing and alignment for a smooth visual effect.
  • Combine with Cards, Images, or Text to create interactive galleries or tooltips.
  • Avoid overcrowding the follower area to maintain clarity.
  • Use subtle movements for better UX and less distraction.