5858 * The animate-enter CSS class is the event name that you
5959 * have provided within the ngAnimate attribute.
6060 * */
61- * .animate-enter-setup {
61+ * .animate-enter {
6262 * -webkit-transition: 1s linear all; /* Safari/Chrome */
6363 * -moz-transition: 1s linear all; /* Firefox */
6464 * -ms-transition: 1s linear all; /* IE10 */
7474 * classes together to avoid any CSS-specificity
7575 * conflicts
7676 * */
77- * .animate-enter-setup .animate-enter-start {
77+ * .animate-enter.animate-enter-active {
7878 * /* The animation code itself */
7979 * opacity: 1;
8080 * }
8787 *
8888 * <pre>
8989 * <style type="text/css">
90- * .animate-enter-setup {
90+ * .animate-enter {
9191 * -webkit-animation: enter_sequence 1s linear;
9292 * -moz-animation: enter_sequence 1s linear;
9393 * -o-animation: enter_sequence 1s linear;
116116 *
117117 * ngAnimate will first examine any CSS animation code and then fallback to using CSS transitions.
118118 *
119- * Upon DOM mutation, the setup class is added first, then the browser is allowed to reflow the content and then,
120- * the start class is added to trigger the animation. The ngAnimate directive will automatically extract the duration
119+ * Upon DOM mutation, the event class is added first, then the browser is allowed to reflow the content and then,
120+ * the active class is added to trigger the animation. The ngAnimate directive will automatically extract the duration
121121 * of the animation to determine when the animation ends. Once the animation is over then both CSS classes will be
122122 * removed from the DOM. If a browser does not support CSS transitions or CSS animations then the animation will start and end
123123 * immediately resulting in a DOM element that is at it's final state. This final state is when the DOM element
@@ -270,8 +270,7 @@ var $AnimatorProvider = function() {
270270 beforeFn ( element , parent , after ) ;
271271 afterFn ( element , parent , after ) ;
272272 } else {
273- var setupClass = className + '-setup' ;
274- var startClass = className + '-start' ;
273+ var activeClassName = className + '-active' ;
275274
276275 if ( ! parent ) {
277276 parent = after ? after . parent ( ) : element . parent ( ) ;
@@ -284,7 +283,7 @@ var $AnimatorProvider = function() {
284283 }
285284
286285 element . data ( NG_ANIMATE_CONTROLLER , { running :true } ) ;
287- element . addClass ( setupClass ) ;
286+ element . addClass ( className ) ;
288287 beforeFn ( element , parent , after ) ;
289288 if ( element . length == 0 ) return done ( ) ;
290289
@@ -304,7 +303,7 @@ var $AnimatorProvider = function() {
304303 } ;
305304
306305 function beginAnimation ( ) {
307- element . addClass ( startClass ) ;
306+ element . addClass ( activeClassName ) ;
308307 if ( polyfillStart ) {
309308 polyfillStart ( element , done , memento ) ;
310309 } else if ( isFunction ( $window . getComputedStyle ) ) {
@@ -357,8 +356,8 @@ var $AnimatorProvider = function() {
357356
358357 function done ( ) {
359358 afterFn ( element , parent , after ) ;
360- element . removeClass ( setupClass ) ;
361- element . removeClass ( startClass ) ;
359+ element . removeClass ( className ) ;
360+ element . removeClass ( activeClassName ) ;
362361 element . removeData ( NG_ANIMATE_CONTROLLER ) ;
363362 }
364363 }
0 commit comments