Motion+

Reorder items

An example of animating list reordering using Motion's animateLayout. Items smoothly animate to their new positions when shuffled.

JavaScript
>Live exampleOpen

Related examples

Latest in JavaScript

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.