A set of components for creating interactive hover card effects that track mouse movements and respond with dynamic animations.

You can customize the Hover Card Effect by:

The HoverContainer component wraps all HoverCard components and manages the mouse movement tracking to provide dynamic hover effects.
| Prop | Type | Default | Description |
|---|---|---|---|
class | String | null | A custom CSS class to style the hover container. |
The HoverCard component represents individual elements within the hover container that react to mouse movement with a dynamic lighting or gradient effect.
| Prop | Type | Default | Description |
|---|---|---|---|
class | String | null | A custom CSS class to style the hover card. |
Both HoverContainer and HoverCard use the default slot for their content.
| Slot | Description |
|---|---|
default | Content for the hover container or hover card. |
HoverCard components within a HoverContainer.default slot to insert custom content such as text, images, or icons inside the hover cards.mouseMove, mouseEnter, and mouseLeave events are handled in the HoverContainer to provide smooth hover interactions.The HoverContainer component tracks the mouse's x and y coordinates and provides this data to its child HoverCard components through Vue's provide and inject APIs.
Key features:
mousemove event to create dynamic hover effects.provide API to share the hover state and mouse position with child components.The HoverCard component responds to the mouse position provided by HoverContainer and applies a visual effect (e.g., gradient, shadow) based on the hover state.
Key features:
inject API to access mouse position and hover state from the parent container.For the full implementation details, please refer to the source code of each component.