Image
VERSION2.3.0
LICENSEMIT
CONFIG4 Options
Displays a custom image or thumbnail as the cursor hover state.
Installation
pnpm add @supermousejs/imageUsage
app.use(Image({ rounded: true }));Configuration
| Option | Type | Default | Description |
|---|---|---|---|
| className | string | 'supermouse-image' | CSS class added to container. |
| offset | [number, number] | [0, 30] | X/Y offset from cursor. |
| duration | number | 200 | Fade transition time in ms. |
| smoothness | number | 1 | Lerp factor for image lag. |