Permalink
Browse files
docs($animate): correct fn parameters for js animation
- Loading branch information
Showing
with
4 additions
and
3 deletions.
-
+4
−3
src/ng/animate.js
|
|
@@ -553,7 +553,7 @@ var $AnimateProvider = ['$provide', function($provide) { |
|
|
* |
|
|
* @description Performs an inline animation on the element which applies the provided to and from CSS styles to the element. |
|
|
* If any detected CSS transition, keyframe or JavaScript matches the provided className value, then the animation will take |
|
|
* on the provided styles. For example, if a transition animation is set for the given className then the provided `from` and |
|
|
* on the provided styles. For example, if a transition animation is set for the given classNamem, then the provided `from` and |
|
|
* `to` styles will be applied alongside the given transition. If the CSS style provided in `from` does not have a corresponding |
|
|
* style in `to`, the style in `from` is applied immediately, and no animation is run. |
|
|
* If a JavaScript animation is detected then the provided styles will be given in as function parameters into the `animate` |
|
|
@@ -562,8 +562,9 @@ var $AnimateProvider = ['$provide', function($provide) { |
|
|
* ```js |
|
|
* ngModule.animation('.my-inline-animation', function() { |
|
|
* return { |
|
|
* animate : function(element, className, from, to, done) { |
|
|
* //styles |
|
|
* animate : function(element, from, to, done, options) { |
|
|
* //animation |
|
|
* done(); |
|
|
* } |
|
|
* } |
|
|
* }); |
|
|
|