I'm trying to implement animation restart on click event: https://stackblitz.com/edit/angular-ivy-rwa4ze?file=src/app/app.component.ts.
There's no problem in example above, but I would like to have a solution without setTimeout
as it looks like kludge for this task, can I achieve this with some another approach? Tried to use CSS animations but still had to use setTimeout
.