You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can find more information about Animation callbacks in the [Angular docs](https://angular.io/guide/transition-and-triggers#animation-callbacks)
191
+
192
+
#### Loop animation
193
+
194
+
You can achieve looped animation by using `done` callback. Define a variable that triggers animation and toggle it when animation done callback is called:
[Example: repeat animation N times after clicking the button](https://stackblitz.com/edit/angular-animations-lib-simple-loop-repeat-n-times?file=src/app/demo-main/demo-main.component.html)<br />
212
+
[Example: repeat animation until certain event occurs](https://stackblitz.com/edit/angular-animations-lib-simple-loop-repeat-until-btn-click?file=src/app/demo-main/demo-main.component.html)
213
+
214
+
#### Chain animations
215
+
216
+
You can chain animations (e.g. wait for the first animation to finish before the second one starts) by using the `done` callback.
0 commit comments