flip
cells that slide to their new places when reordered
demonstrates: svelte/animate — flip1
2
3
4
5
6
7
8
9
Change the order of a keyed list and Svelte's flip animation measures where each item was, where it lands, and tweens the difference — First, Last, Invert, Play. You reorder the data; the motion is derived. Hit shuffle or sort and every cell takes the shortest path to its seat.