CursorsNew

Ripple Surface

A water-like surface: a click sends out rings and the cursor leaves a light ripple. The grid underneath bends.

Customize

color
background

A Codearia component · Terms of use

More in Pro

View all

Props

10 properties
PropertyTypeDefaultDescription
colorstring"#ffffff"Color of the grid and highlights.
backgroundstring"#0a0a0a"Surface color.
gridSizenumber32Grid step, in pixels. 0 hides the grid.
strengthnumber1Wave height.
speednumber1Speed. 0 stops the motion.
lifetimenumber3How long one ripple lives, in seconds.
rippleOnMovebooleantrueLeave small rings while the cursor moves.
autoDemobooleantrueDrop ripples on their own until the visitor touches the block.
childrenReactNode—Content on top of the effect.
classNamestring—Classes for the wrapper.

Dependencies

3 required packages

npm install ogl clsx tailwind-merge

Related components

View all