I'm trying to add an animation to Angular 17 application but it is not working as expected.
Basically there are two divs, side by side and left side is hidden by *ngIf when a button is pressed. Animation from left side works as expected but right div does not follow, it is resized only when animation completes.
Here is the sample code: https://stackblitz-starters-uwgcaa.stackblitz.io
How do I make animation work in both sides?
Thanks in advance.
Please change the animation from
translateXtomargin-left, looked up the CSS tutorials and found the solution!stackblitz
References