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
Copy file name to clipboardExpand all lines: src/ngAnimate/animateCss.js
+7-7
Original file line number
Diff line number
Diff line change
@@ -167,7 +167,7 @@ var ANIMATE_TIMER_KEY = '$$animateCss';
167
167
* ```
168
168
*
169
169
* To actually start the animation we need to run `animation.start()` which will then return a promise that we can hook into to detect when the animation ends.
170
-
* If we choose not to run the animation then we MUST run `animation.end()` to perform a cleanup on the element (since some CSS classes and stlyes may have been
170
+
* If we choose not to run the animation then we MUST run `animation.end()` to perform a cleanup on the element (since some CSS classes and styles may have been
171
171
* applied to the element during the preparation phase). Note that all other properties such as duration, delay, transitions and keyframes are just properties
172
172
* and that changing them will not reconfigure the parameters of the animation.
173
173
*
@@ -205,10 +205,10 @@ var ANIMATE_TIMER_KEY = '$$animateCss';
205
205
* ({@link ngAnimate#css-staggering-animations Click here to learn how CSS-based staggering works in ngAnimate.})
206
206
* * `staggerIndex` - The numeric index representing the stagger item (e.g. a value of 5 is equal to the sixth item in the stagger; therefore when a
207
207
* `stagger` option value of `0.1` is used then there will be a stagger delay of `600ms`)
208
-
* * `applyClassesEarly` - Whether or not the classes being added or removed will be used when detecting the animation. This is set by `$animate` when enter/leave/move animations are fired to ensure that the CSS classes are resolved in time. (Note that this will prevent any transitions from occuring on the classes being added and removed.)
208
+
* * `applyClassesEarly` - Whether or not the classes being added or removed will be used when detecting the animation. This is set by `$animate` when enter/leave/move animations are fired to ensure that the CSS classes are resolved in time. (Note that this will prevent any transitions from occurring on the classes being added and removed.)
209
209
* * `cleanupStyles` - Whether or not the provided `from` and `to` styles will be removed once
210
210
* the animation is closed. This is useful for when the styles are used purely for the sake of
211
-
* the animation and do not have a lasting visual effect on the element (e.g. a colapse and open animation).
211
+
* the animation and do not have a lasting visual effect on the element (e.g. a collapse and open animation).
212
212
* By default this value is set to `false`.
213
213
*
214
214
* @return {object} an object with start and end methods and details about the animation.
@@ -261,7 +261,7 @@ function computeCssStyles($window, element, properties) {
261
261
}
262
262
263
263
// by setting this to null in the event that the delay is not set or is set directly as 0
264
-
// then we can still allow for zegative values to be used later on and not mistake this
264
+
// then we can still allow for negative values to be used later on and not mistake this
265
265
// value for being greater than any other negative value.
266
266
if(val===0){
267
267
val=null;
@@ -377,7 +377,7 @@ var $AnimateCssProvider = ['$animateProvider', function($animateProvider) {
377
377
}
378
378
379
379
// we keep putting this in multiple times even though the value and the cacheKey are the same
380
-
// because we're keeping an interal tally of how many duplicate animations are detected.
380
+
// because we're keeping an internal tally of how many duplicate animations are detected.
381
381
gcsLookup.put(cacheKey,timings);
382
382
returntimings;
383
383
}
@@ -839,9 +839,9 @@ var $AnimateCssProvider = ['$animateProvider', function($animateProvider) {
839
839
}
840
840
};
841
841
842
-
// checking the stagger duration prevents an accidently cascade of the CSS delay style
842
+
// checking the stagger duration prevents an accidentally cascade of the CSS delay style
843
843
// being inherited from the parent. If the transition duration is zero then we can safely
844
-
// rely that the delay value is an intential stagger delay style.
844
+
// rely that the delay value is an intentional stagger delay style.
0 commit comments