Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

ngAnimate causes flashes if new animations are fired too quickly #3874

Closed
mik01aj opened this issue Sep 4, 2013 · 2 comments · Fixed by #3882
Closed

ngAnimate causes flashes if new animations are fired too quickly #3874

mik01aj opened this issue Sep 4, 2013 · 2 comments · Fixed by #3882

Comments

@mik01aj
Copy link

mik01aj commented Sep 4, 2013

See this plunk: http://plnkr.co/edit/Kr6WQOOcmxB018VOkDR5?p=preview. It uses Angular 1.2.0-rc2. When you move your mouse quickly over the red bar twice (causing events: mouseover mouseout mouseover mouseout), the bar collapses nicely, but flashes for a while in full width a bit before the animation is supposed to finish.

I suppose that some $timeouts are not cancelled when the new animation is started.

@matsko
Copy link
Contributor

matsko commented Sep 5, 2013

Looks much better now with the latest PR which uses CSS events instead of timeouts:
http://plnkr.co/edit/vVZF9pthyHEKMjgGlk8G?p=preview

@mik01aj
Copy link
Author

mik01aj commented Sep 5, 2013

Great! Thanks, @matsko :)

@matsko matsko closed this as completed in 32ad292 Sep 6, 2013
jamesdaily pushed a commit to jamesdaily/angular.js that referenced this issue Sep 25, 2013
jamesdaily pushed a commit to jamesdaily/angular.js that referenced this issue Jan 27, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants