Motion+

Drag with spring follow

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

React
>Live exampleOpen

Related examples

Latest in React

Motion+

Unlock all 370+ examples

  • Source code for every Plus example.
  • Provide examples direct to your agent via Motion's MCP.
  • Lifetime access to new examples and APIs.