Press, poke and pull
More cursor effects in Pro
Cursor trails and pointer effects that give a site its own feel.
text | 'Squish' | Text to inflate. Use \n for more lines. | |
src | URL of an SVG or PNG to inflate instead of text. Its transparent pixels define the shape. | ||
fontFamily | 'system-ui, sans-serif' | Font used for the text. Heavy, rounded faces inflate best. | |
fontWeight | 900 | Weight of the text. | |
color | '#3b5bff' | Base color of the material. | |
imageColors | Keeps the colors of the image passed to src instead of using color. | ||
material | 'balloon' | 'chrome' | 'jelly' | 'clay' | 'balloon' | Surface finish: glossy balloon, mirror chrome, glowing jelly or soft matte clay. |
inflate | How puffy the shape is. 1 gives round tubes. | ||
stiffness | 0.5 | How firm the material feels, from 0 for soft and stretchy to 1 for firm and quick. | |
wobble | 0.6 | How long it jiggles after a poke or a pull, from 0 to 1. | |
grabRadius | 70 | Size of the area the cursor grabs and presses, in pixels. | |
stretch | 0.5 | How far the material can be pulled, from 0 to 1. | |
press | 0.5 | Depth of the dent under the cursor and of a poke. | |
shadow | 0.5 | Strength of the soft drop shadow. | |
| Inflates the shape letter by letter on mount. | |||
theme | 'dark' | 'light' | 'dark' | Lighting setup for dark or light pages. |
dpr | auto | Maximum device pixel ratio, capped at 2. | |
| Extra class names for the container. | |||
| Inline styles for the container. |
textstringText to inflate. Use \n for more lines.
'Squish'srcstringURL of an SVG or PNG to inflate instead of text. Its transparent pixels define the shape.
fontFamilystringFont used for the text. Heavy, rounded faces inflate best.
'system-ui, sans-serif'fontWeightnumberWeight of the text.
900colorstringBase color of the material.
'#3b5bff'imageColorsbooleanKeeps the colors of the image passed to src instead of using color.
material'balloon' | 'chrome' | 'jelly' | 'clay'Surface finish: glossy balloon, mirror chrome, glowing jelly or soft matte clay.
'balloon'inflatenumberHow puffy the shape is. 1 gives round tubes.
stiffnessnumberHow firm the material feels, from 0 for soft and stretchy to 1 for firm and quick.
0.5wobblenumberHow long it jiggles after a poke or a pull, from 0 to 1.
0.6grabRadiusnumberSize of the area the cursor grabs and presses, in pixels.
70stretchnumberHow far the material can be pulled, from 0 to 1.
0.5pressnumberDepth of the dent under the cursor and of a poke.
0.5shadownumberStrength of the soft drop shadow.
0.5introbooleanInflates the shape letter by letter on mount.
theme'dark' | 'light'Lighting setup for dark or light pages.
'dark'dprnumberMaximum device pixel ratio, capped at 2.
autoExtra class names for the container.
Inline styles for the container.



