We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 699f86c commit 5dcd1d3Copy full SHA for 5dcd1d3
src/ngAnimate/animate.js
@@ -548,7 +548,10 @@ angular.module('ngAnimate', ['ng'])
548
done();
549
} else {
550
var activeClassName = '';
551
- $timeout(startAnimation, 1, false);
+ // force the browser to do a reflow before starting the animation
552
+ // this will make sure that transitions are applied correctly
553
+ element.prop('clientWidth');
554
+ startAnimation();
555
556
//this acts as the cancellation function in case
557
//a new animation is triggered while another animation
0 commit comments