AI analysis A layout transition demo where cards keep their identity and interpolate position, size, and corner radius along curved paths.
Four gradient image cards in the center of a white background switch between a single row and a 2×2 grid, with a floating control bar fixed at the bottom. The cards are filled with blurred abstract imagery in orange, pink, yellow, and green, and the control groups a black pill button with a circular slow-motion toggle inside a light gray capsule. Mid-transition frames show the cards overlapping and scattering at different heights as they travel along curved paths, with size and corner radius interpolated together. It is a useful reference for implementing shared layout animations where the same elements move rather than re-render.
minimal · light-mode · soft-gradient
claude-opus-5-5 · 2026-12-03 07:04 · Confidence 0.80
Original post Design Engineering Tip
Make reordered cards keep their identity.
When a layout changes, cards shouldn’t pop into new slots. Keep each item mounted with a stable ID and animate its position, size, and corner radius. The result feels like the interface is rearranging itself not re-rendering.
Add Motion’s arc() to the movement path for a subtle curve. That small deviation from a straight line makes the transition feel more natural and physical.
<motion.div
layoutId={card. id}
animate={{
left: layout.left,
top: layout. top,
width: layout.width,
height: layout.height,
borderRadius: layout.radius,
}}
transition={{ duration: 0.6, ease: "easeOut" }}
>
<img src={card.image} alt="" />
</motion.div>
690 likes · 20 reposts
x.com/gabriell_lab/status/2089016710745534571