Ghostly Focus
Interactive mouse-following blur effect with spotlight reveal.
Main Features of Ghostly Focus
How to Use Ghostly Focus in Next.js
Installation Guide for Ghostly Focus
Props
Customize the component with these props
| Property | Type | Default | Description |
|---|---|---|---|
backgroundColor | string | #171717 | Background color |
baseBlobColor | string | #262626 | Base blob color |
baseBlobSize | string | 16rem | Base blob size |
baseBlobBlur | string | 80px | Base blob blur |
baseBlob1Position | string | top-10 left-10 | First base blob position |
baseBlob2Position | string | bottom-10 right-10 | Second base blob position |
focusBlobColor | string | rgba(255, 255, 255, 0.05) | Focus blob color |
focusBlobSize | string | 500px | Focus blob size |
focusBlobBlur | string | 60px | Focus blob blur |
springStiffness | number | 50 | Spring physics stiffness |
springDamping | number | 20 | Spring physics damping |
noiseOpacity | number | 0.2 | Noise overlay opacity |
noiseBaseFrequency | string | 1.5 | Noise base frequency |
noiseOctaves | number | 3 | Noise octaves |
text | string | Focus | Text label |
textColor | string | rgba(255, 255, 255, 0.9) | Text color |
className | string | Additional CSS classes |
Related Components
Interstellar Fluid Hero
Interactive fluid simulation creating cosmic nebula effects with mouse interaction. Deep space aesthetic with animated gas clouds and star trails.
Interstellar Background Hero
Warp tunnel effect simulating high-velocity travel through nebular clusters. Procedural WebGL engine with mouse-responsive space distortion.
Liquid Chrome Hero
Procedural simulation of molten chrome alloys with velocity-based distortion. Interactive liquid metal surface with specular highlights.
When to Use
Best Practices
Why This Component Matters in Modern UI Development
Frequently Asked Questions
QCan I adjust the focus size?
Yes, the `focusBlobSize` prop allows you to increase or decrease the diameter of the 'clear' area.
QDoes it work well with text?
It's perfect for text-heavy layouts where you want the user to 'discover' content as they explore with their mouse.
QIs the movement smooth?
Yes, it uses Framer Motion's spring physics to ensure the spotlight follows the cursor with a natural, lag-free elasticity.
