Mosaic
0
Grid Size
10
Gap
0px
Randomness
0.3
Duration
0.4s
Frame Rate
0

More cursor effects in Pro

Cursor trails and pointer effects that give a site its own feel.

View all 19
19 properties
firstContentReactNodeContent shown by default.
secondContentReactNodeContent revealed by the transition.
gridSize10Number of pixels across the card. Rows follow so every pixel stays square.
pixelColor'#ffffff'Color of the pixels. Any CSS color works.
mosaicGives each pixel a slightly different tone of the pixel color, from 0 to 1.
animationStepDuration0.4Seconds the pixels take to cover the card, and again to clear it.
pattern'random' | 'dither' | 'ripple' | 'wipe''random'Order the pixels appear in. Ripple spreads from the pointer and wipe sweeps in from the edge it crossed.
randomness0.3Breaks up the ripple and wipe fronts, from 0 to 1.
pixelAnimation'pop' | 'grow' | 'fade''pop'How each pixel appears and disappears.
pixelShape'square' | 'rounded' | 'circle''square'Shape of the pixels while the transition runs. They merge into a solid cover at the midpoint.
gapSpace between pixels in pixels.
fpsCaps how often the pixels redraw for a choppy retro feel. 0 redraws every frame.
trigger'hover' | 'click''hover'What starts the transition.
activeControls the state from outside. Pair it with onActiveChange.
onceKeeps the second content once it has been revealed.
onActiveChange(active: boolean) => voidCalled when hover, focus or a click asks for the other content.
aspectRatio'100%'Height of the card. Percentages work like padding-top ('125%'), anything else is a CSS ratio ('4 / 5').
Extra class names for the card.
Inline styles for the card.
firstContentReactNode

Content shown by default.

secondContentReactNode

Content revealed by the transition.

gridSizenumber

Number of pixels across the card. Rows follow so every pixel stays square.

Default10
pixelColorstring

Color of the pixels. Any CSS color works.

Default'#ffffff'
mosaicnumber

Gives each pixel a slightly different tone of the pixel color, from 0 to 1.

animationStepDurationnumber

Seconds the pixels take to cover the card, and again to clear it.

Default0.4
pattern'random' | 'dither' | 'ripple' | 'wipe'

Order the pixels appear in. Ripple spreads from the pointer and wipe sweeps in from the edge it crossed.

Default'random'
randomnessnumber

Breaks up the ripple and wipe fronts, from 0 to 1.

Default0.3
pixelAnimation'pop' | 'grow' | 'fade'

How each pixel appears and disappears.

Default'pop'
pixelShape'square' | 'rounded' | 'circle'

Shape of the pixels while the transition runs. They merge into a solid cover at the midpoint.

Default'square'
gapnumber

Space between pixels in pixels.

fpsnumber

Caps how often the pixels redraw for a choppy retro feel. 0 redraws every frame.

trigger'hover' | 'click'

What starts the transition.

Default'hover'
activeboolean

Controls the state from outside. Pair it with onActiveChange.

onceboolean

Keeps the second content once it has been revealed.

onActiveChange(active: boolean) => void

Called when hover, focus or a click asks for the other content.

aspectRatiostring

Height of the card. Percentages work like padding-top ('125%'), anything else is a CSS ratio ('4 / 5').

Default'100%'

Extra class names for the card.

Inline styles for the card.