Loading component…
Components /Pixelated Image Trail
Cursor trail image reveal
Run the following command
npx shadcn@latest add https://raw.githubusercontent.com/Ashutoshx7/VengeanceUI/main/public/r/pixelated-image-trail.json| Prop Name | Type | Default | Description |
|---|---|---|---|
| images | string[] | - | Array of image URLs for the trail effect. |
| className | string | - | Additional CSS classes. |
| config | Partial<TrailConfig> | - | Override timing and easing values for the reveal, slide, and exit animations. |
| slices | number | 5 | Number of horizontal mask slices used for the reveal. |
| spawnThreshold | number | 32 | Pointer distance in pixels before a new trail image appears. Lower values create a denser trail. |
| smoothing | number | 0.32 | Interpolation factor used to smooth pointer movement. Values closer to 1 follow faster. |
| imageSize | number | 220 | Rendered trail image size in pixels. |
| Prop Name | Type | Default | Description |
|---|---|---|---|
| imageLifespan | number | 1500 | Delay in milliseconds before a spawned image begins exiting. |
| inDuration | number | 280 | Duration in milliseconds for each slice reveal. |
| outDuration | number | 620 | Duration in milliseconds for fade and scale out. |
| staggerIn | number | 12 | Delay in milliseconds between slice reveal steps. |
| staggerOut | number | 9 | Delay in milliseconds between slice hide steps. |
| slideDuration | number | 1300 | Duration in milliseconds for the image drift after spawning. |
| slideEasing | string | cubic-bezier(0.16, 1, 0.3, 1) | CSS easing for image drift. |
| easing | string | cubic-bezier(0.16, 1, 0.3, 1) | CSS easing for reveal and exit transitions. |