This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
$animator: chaining or cancelling animations (show/hide) #2332
Closed
Description
Currently there is no way to cancel/chain animations.
This leads to unexpected behaviour: if you have some elements under ngShow and quickly change expression (not waiting until animation is finished) you'll have your elements hidden even if ngShow expression is true.
Here is example: http://plnkr.co/edit/67Q96KmExV78Kd84tq4g?p=preview - wait until elements will show and quickly toggle checkbox (on and off) and you'll see that no elments would be shown.
I assume the solution should be to stop animation on element (so removing all added classes in case of CSS3) AND call afterFn
button in case if new animation is about to be started. Or there is better solution (chaining of animations?)