I am facing a challenge with a tab containing four items that are vertically stacked on mobile devices. My goal is to animate the clicked li
element to move to the bottom of the stack. After experimenting with CSS animations, I was able to achieve this effect successfully.
To see the code in action, please visit the following fiddle: https://jsfiddle.net/afelixj/wf0y9wbx/3/
However, I am encountering difficulty controlling the upward movement of the other items. The elements at the bottom do not always move up simultaneously as intended.