I have a list of items, which are animated with :enter and :leave transitions. While entering the items have a height of 0, and when done, they should have a height of *. So they have a drawer/collapse animation. And all the content under the list moves obviously also down.
The animations work when the animated item is in viewport. But as soon as i am somewhere else under the list and a new item is added, i see that all the content moves down at once, without animation.
How can i fix this?