move-position-hero-image
v0.0.1
Published
An Astro component that makes an image react to mouse movements, creating a dynamic effect by shifting its position based on cursor movement. Perfect for hero sections and interactive backgrounds.
Maintainers
Readme
move-position-hero-image
An Astro component that makes an image react to mouse movements, creating a dynamic effect by shifting its position based on cursor movement. Perfect for hero sections and interactive backgrounds.
Installation 📖
# You can intall with npm
npm install move-position-hero-image
# or with yarn
yarn add move-position-hero-image
# or with pnpm
pnpm add move-position-hero-imageUsage ⚙️
---
import MovePositionHeroImage from 'move-position-hero-image';
---
<MovePositionHeroImage srcImage={'https://20essentials.github.io/project-1297/assets/fiat.avif'} />
