More cursor effects in Pro
Cursor trails and pointer effects that give a site its own feel.
gridSize | 10 | Number of cubes on each side of the grid. | |
gap | 0.18 | Space between cubes, as a fraction of a cell. | |
faceColor | '#120F17' | Color of the cube faces. Match it to your page background for a clean cut-out look. | |
edgeColor | '#ffffff' | Color of the cube outlines. | |
edgeWidth | Width of the outlines in px. | ||
edgeStyle | 'solid' | 'dashed' | 'dotted' | 'none' | 'solid' | How the cube outlines are drawn. |
faceOpacity | Opacity of the faces, from 0 for see-through wireframes to 1 for solid cubes. | ||
shading | 0.6 | How much the sides of turned cubes pick up light, so they read as solid 3D shapes. | |
maxAngle | 45 | How far cubes turn to face the cursor, in degrees. | |
radius | 3 | How far the cursor reaches, in cubes. | |
speed | How quickly cubes respond. | ||
bounce | 0.4 | How much cubes overshoot and wobble as they settle, from 0 to 1. | |
brush | How strongly fast cursor sweeps spin the cubes they pass over. | ||
perspective | Camera perspective, from 0 for a flat front view to 1 for strong depth. | ||
autoAnimate | Drifts a gentle wave across the grid while the cursor is away. | ||
rippleOnClick | Clicking sends a ripple through the cubes that lights up their edges. | ||
rippleColor | '#ffffff' | Color the ripple lights the cubes with. | |
rippleSpeed | Speed of the ripple. | ||
| Cubes tumble into place from the center on mount. | |||
paused | Freezes the animation. | ||
dpr | auto | Maximum device pixel ratio, capped at 2. | |
| Extra class names for the container. |
gridSizenumberNumber of cubes on each side of the grid.
10gapnumberSpace between cubes, as a fraction of a cell.
0.18faceColorstringColor of the cube faces. Match it to your page background for a clean cut-out look.
'#120F17'edgeColorstringColor of the cube outlines.
'#ffffff'edgeWidthnumberWidth of the outlines in px.
edgeStyle'solid' | 'dashed' | 'dotted' | 'none'How the cube outlines are drawn.
'solid'faceOpacitynumberOpacity of the faces, from 0 for see-through wireframes to 1 for solid cubes.
shadingnumberHow much the sides of turned cubes pick up light, so they read as solid 3D shapes.
0.6maxAnglenumberHow far cubes turn to face the cursor, in degrees.
45radiusnumberHow far the cursor reaches, in cubes.
3speednumberHow quickly cubes respond.
bouncenumberHow much cubes overshoot and wobble as they settle, from 0 to 1.
0.4brushnumberHow strongly fast cursor sweeps spin the cubes they pass over.
perspectivenumberCamera perspective, from 0 for a flat front view to 1 for strong depth.
autoAnimatebooleanDrifts a gentle wave across the grid while the cursor is away.
rippleOnClickbooleanClicking sends a ripple through the cubes that lights up their edges.
rippleColorstringColor the ripple lights the cubes with.
'#ffffff'rippleSpeednumberSpeed of the ripple.
introbooleanCubes tumble into place from the center on mount.
pausedbooleanFreezes the animation.
dprnumberMaximum device pixel ratio, capped at 2.
autoExtra class names for the container.



