'Animate objects in another column in LazyVerticalGrid

I have a LazyVerticalGrid with items that I animate with animateDpAsState and width upon click on the button. The items below do move downwards but there is a problem with the side items. Is there a convinient way to make those move too? Here's a link to showcase what I'm talking about



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source