Skip to example

Drag with spring follow

An example of making multiple elements follow the pointer on drag, using Motion for React's useSpring hook.

React

Source code