Dragging ball

A draggable squishy ball for React that reacts like something soft. Grab it and it swells under the pointer, squeezes while you hold it and stretches as it moves. Stretch, size and how quickly it rounds back out are adjustable. Fun for playful interfaces, loading screens and interactive demos.

Dragging ball, at rest

Drag · free, with full source

Dragging ball props

NameTypeDefaultDescription
stretchnumber36How much it deforms as it moves. From 0 to 70.
gripnumber50How hard it squeezes when held. From 0 to 100.
sizenumber56pxThe ball. From 32 to 84px.

Free under MIT. Licence

More blocks

More drag blocks