Weird twitching with horizontal collapse

Author: tomashauserCreated Jan 4, 2025Updated Jan 4, 2025

What is the current behavior?

When used with MUI's horizontal collapse, there is this weird twitching. Try adding a few cards in a disclosed sandbox.

What is the expected behavior?

The animation is smooth and doesn't twitch.

Could you provide a CodeSandbox demo reproducing the bug?

https://codesandbox.io/p/sandbox/transition-group-with-horizontal-collapse-2frjrp

Source: reactjs/react-transition-group