0👍
I think the problem is that transition: all
applies a transition to all CSS properties. This includes the position: absolute;
If you inspect in the developer while toggling the filter you can see this live. If you change the transition to something like transition: opacity 800ms ease-in-out;
the list items won’t start in the left corner.
Source:stackexchange.com