More cursor effects in Pro
Cursor trails and pointer effects that give a site its own feel.
src | 'https://images.unsplash.com/...' | Image to veil. Must be served with CORS headers. | |
fit | 'contain' | 'cover' | 'contain' | Show the whole image on the ink, or crop it to fill the container. |
pattern | 'bayer' | 'noise' | 'atkinson' | 'floyd' | 'lines' | 'floyd' | How the image is broken into dots: an ordered Bayer grid, blue noise stipple, Atkinson or Floyd-Steinberg error diffusion, or diagonal engraving lines. |
palette | 'duotone' | 'rgb' | 'duotone' | Duotone maps brightness between the ink and paper colours. RGB dithers each channel for a retro colour look. |
pixelSize | 2 | Size of each dither cell, in px. | |
levels | 2 | Tones per channel. 2 is pure 1-bit, higher values add in-between shades. | |
inkColor | '#120f17' | Colour of the darkest tone. | |
paperColor | '#f4f1ea' | Colour of the lightest tone. | |
contrast | 1.15 | Tonal contrast applied before dithering. | |
brightness | Shifts the image lighter or darker before dithering. | ||
revealRadius | 200 | Radius of the full-colour window around the cursor, in px. | |
softness | 0.6 | How much of the reveal edge dissolves through the dither. 0 is a hard cut. | |
linger | Seconds the revealed trail takes to knit back into dither. 0 turns the trail off. | ||
rimColor | '#a78bfa' | Colour of the cells along the dissolving edge. | |
rim | Thickness of the coloured rim on the dissolving edge. 0 hides it. | ||
reverse | Start in full colour and dither wherever the cursor goes. | ||
wander | Let the reveal drift around on its own while the pointer is away. | ||
clickBurst | Clicking sends a ring of colour rippling out across the image. | ||
| Extra classes on the container. | |||
| Inline styles on the container. |
srcstringImage to veil. Must be served with CORS headers.
'https://images.unsplash.com/...'fit'contain' | 'cover'Show the whole image on the ink, or crop it to fill the container.
'contain'pattern'bayer' | 'noise' | 'atkinson' | 'floyd' | 'lines'How the image is broken into dots: an ordered Bayer grid, blue noise stipple, Atkinson or Floyd-Steinberg error diffusion, or diagonal engraving lines.
'floyd'palette'duotone' | 'rgb'Duotone maps brightness between the ink and paper colours. RGB dithers each channel for a retro colour look.
'duotone'pixelSizenumberSize of each dither cell, in px.
2levelsnumberTones per channel. 2 is pure 1-bit, higher values add in-between shades.
2inkColorstringColour of the darkest tone.
'#120f17'paperColorstringColour of the lightest tone.
'#f4f1ea'contrastnumberTonal contrast applied before dithering.
1.15brightnessnumberShifts the image lighter or darker before dithering.
revealRadiusnumberRadius of the full-colour window around the cursor, in px.
200softnessnumberHow much of the reveal edge dissolves through the dither. 0 is a hard cut.
0.6lingernumberSeconds the revealed trail takes to knit back into dither. 0 turns the trail off.
rimColorstringColour of the cells along the dissolving edge.
'#a78bfa'rimnumberThickness of the coloured rim on the dissolving edge. 0 hides it.
reversebooleanStart in full colour and dither wherever the cursor goes.
wanderbooleanLet the reveal drift around on its own while the pointer is away.
clickBurstbooleanClicking sends a ring of colour rippling out across the image.
Extra classes on the container.
Inline styles on the container.
Dependencies
1 required package
npm install ogl


