A Vue component that creates a direction-aware hover effect on images using GSAP for animations.
| Prop | Type | Default | Description | 
|---|---|---|---|
| img | String | Required | URL of the image to be displayed. | 
| imageAlt | String | 'Hover image' | Alt text for the image. | 
| class | String | '' | Additional CSS classes for the main container. | 
| childrenClass | String | '' | CSS classes for the content container. | 
| imageClass | String | '' | Additional CSS classes for the image. | 
| Slot | Description | 
|---|---|
| default | Content to be displayed over the image on hover. | 
You can customize the DirectionAwareHover component in several ways:
img prop to set the image source.imageAlt prop to provide appropriate alt text for accessibility.class, childrenClass, and imageClass props to apply custom styles.This component requires the GSAP library for animations. Make sure to install it in your project:
npm install gsap