
More cursor effects in Pro
Cursor trails and pointer effects that give a site its own feel.
children | ReactNode | The content the glare passes over. | |
mode | 'hover' | 'follow' | 'loop' | 'click' | 'hover' | Sweep on hover, follow the cursor, shine on a timer, or sweep on click. |
variant | 'streak' | 'twin' | 'sheen' | 'streak' | Shape of the glare: one bright streak, a double streak like glass, or a soft wide sheen. |
glareColor | '#ffffff' | Color of the glare. Any CSS color. | |
glareOpacity | 0.5 | Brightness of the glare, from 0 to 1. | |
glareSize | 30 | Width of the glare as a percentage of the element's diagonal. | |
softness | 0.6 | How soft the core of the glare is, from 0 to 1. | |
glareAngle | -45 | Direction the glare travels, in degrees. | |
blendMode | 'screen' | How the glare mixes with the content: screen, normal, overlay or soft-light. | |
rimGlint | Lets the edge catch the light where the glare crosses it. | ||
transitionDuration | 650 | How long one sweep takes, in milliseconds. | |
interval | 3 | Seconds between shines in loop mode. | |
playOnce | In hover mode, sweeps only on the way in instead of again on the way out. | ||
| Sweeps once when the element first scrolls into view. | |||
width | 'auto' | Width of the element. | |
height | 'auto' | Height of the element. | |
background | 'transparent' | Background of the element. | |
borderRadius | '10px' | Corner radius of the element. | |
borderColor | 'transparent' | Border color of the element. | |
| Extra class names for the element. | |||
{} | Inline styles for the element. |
childrenReactNodeThe content the glare passes over.
mode'hover' | 'follow' | 'loop' | 'click'Sweep on hover, follow the cursor, shine on a timer, or sweep on click.
'hover'variant'streak' | 'twin' | 'sheen'Shape of the glare: one bright streak, a double streak like glass, or a soft wide sheen.
'streak'glareColorstringColor of the glare. Any CSS color.
'#ffffff'glareOpacitynumberBrightness of the glare, from 0 to 1.
0.5glareSizenumberWidth of the glare as a percentage of the element's diagonal.
30softnessnumberHow soft the core of the glare is, from 0 to 1.
0.6glareAnglenumberDirection the glare travels, in degrees.
-45blendModestringHow the glare mixes with the content: screen, normal, overlay or soft-light.
'screen'rimGlintbooleanLets the edge catch the light where the glare crosses it.
transitionDurationnumberHow long one sweep takes, in milliseconds.
650intervalnumberSeconds between shines in loop mode.
3playOncebooleanIn hover mode, sweeps only on the way in instead of again on the way out.
introbooleanSweeps once when the element first scrolls into view.
widthstringWidth of the element.
'auto'heightstringHeight of the element.
'auto'backgroundstringBackground of the element.
'transparent'borderRadiusstringCorner radius of the element.
'10px'borderColorstringBorder color of the element.
'transparent'Extra class names for the element.
Inline styles for the element.
{}


