@@ -420,7 +420,13 @@ var $AnimateProvider = ['$provide', function($provide) {
420
420
* @param {DOMElement } parent the parent element which will append the element as
421
421
* a child (so long as the after element is not present)
422
422
* @param {DOMElement= } after the sibling element after which the element will be appended
423
- * @param {object= } options an optional collection of options/styles that will be applied to the element
423
+ * @param {object= } options an optional collection of options/styles that will be applied to the element.
424
+ * The object can have the following properties:
425
+ *
426
+ * - **addClass** - `{string}` - space-separated CSS classes to add to element
427
+ * - **from** - `{Object}` - CSS properties & values at the beginning of animation. Must have matching `to`
428
+ * - **removeClass** - `{string}` - space-separated CSS classes to remove from element
429
+ * - **to** - `{Object}` - CSS properties & values at end of animation. Must have matching `from`
424
430
*
425
431
* @return {Promise } the animation callback promise
426
432
*/
@@ -446,7 +452,13 @@ var $AnimateProvider = ['$provide', function($provide) {
446
452
* @param {DOMElement } parent the parent element which will append the element as
447
453
* a child (so long as the after element is not present)
448
454
* @param {DOMElement= } after the sibling element after which the element will be appended
449
- * @param {object= } options an optional collection of options/styles that will be applied to the element
455
+ * @param {object= } options an optional collection of options/styles that will be applied to the element.
456
+ * The object can have the following properties:
457
+ *
458
+ * - **addClass** - `{string}` - space-separated CSS classes to add to element
459
+ * - **from** - `{Object}` - CSS properties & values at the beginning of animation. Must have matching `to`
460
+ * - **removeClass** - `{string}` - space-separated CSS classes to remove from element
461
+ * - **to** - `{Object}` - CSS properties & values at end of animation. Must have matching `from`
450
462
*
451
463
* @return {Promise } the animation callback promise
452
464
*/
@@ -467,7 +479,13 @@ var $AnimateProvider = ['$provide', function($provide) {
467
479
* digest once the animation has completed.
468
480
*
469
481
* @param {DOMElement } element the element which will be removed from the DOM
470
- * @param {object= } options an optional collection of options/styles that will be applied to the element
482
+ * @param {object= } options an optional collection of options/styles that will be applied to the element.
483
+ * The object can have the following properties:
484
+ *
485
+ * - **addClass** - `{string}` - space-separated CSS classes to add to element
486
+ * - **from** - `{Object}` - CSS properties & values at the beginning of animation. Must have matching `to`
487
+ * - **removeClass** - `{string}` - space-separated CSS classes to remove from element
488
+ * - **to** - `{Object}` - CSS properties & values at end of animation. Must have matching `from`
471
489
*
472
490
* @return {Promise } the animation callback promise
473
491
*/
@@ -491,7 +509,13 @@ var $AnimateProvider = ['$provide', function($provide) {
491
509
*
492
510
* @param {DOMElement } element the element which the CSS classes will be applied to
493
511
* @param {string } className the CSS class(es) that will be added (multiple classes are separated via spaces)
494
- * @param {object= } options an optional collection of options/styles that will be applied to the element
512
+ * @param {object= } options an optional collection of options/styles that will be applied to the element.
513
+ * The object can have the following properties:
514
+ *
515
+ * - **addClass** - `{string}` - space-separated CSS classes to add to element
516
+ * - **from** - `{Object}` - CSS properties & values at the beginning of animation. Must have matching `to`
517
+ * - **removeClass** - `{string}` - space-separated CSS classes to remove from element
518
+ * - **to** - `{Object}` - CSS properties & values at end of animation. Must have matching `from`
495
519
*
496
520
* @return {Promise } the animation callback promise
497
521
*/
@@ -515,7 +539,13 @@ var $AnimateProvider = ['$provide', function($provide) {
515
539
*
516
540
* @param {DOMElement } element the element which the CSS classes will be applied to
517
541
* @param {string } className the CSS class(es) that will be removed (multiple classes are separated via spaces)
518
- * @param {object= } options an optional collection of options/styles that will be applied to the element
542
+ * @param {object= } options an optional collection of options/styles that will be applied to the element.
543
+ * The object can have the following properties:
544
+ *
545
+ * - **addClass** - `{string}` - space-separated CSS classes to add to element
546
+ * - **from** - `{Object}` - CSS properties & values at the beginning of animation. Must have matching `to`
547
+ * - **removeClass** - `{string}` - space-separated CSS classes to remove from element
548
+ * - **to** - `{Object}` - CSS properties & values at end of animation. Must have matching `from`
519
549
*
520
550
* @return {Promise } the animation callback promise
521
551
*/
@@ -540,7 +570,13 @@ var $AnimateProvider = ['$provide', function($provide) {
540
570
* @param {DOMElement } element the element which the CSS classes will be applied to
541
571
* @param {string } add the CSS class(es) that will be added (multiple classes are separated via spaces)
542
572
* @param {string } remove the CSS class(es) that will be removed (multiple classes are separated via spaces)
543
- * @param {object= } options an optional collection of options/styles that will be applied to the element
573
+ * @param {object= } options an optional collection of options/styles that will be applied to the element.
574
+ * The object can have the following properties:
575
+ *
576
+ * - **addClass** - `{string}` - space-separated CSS classes to add to element
577
+ * - **from** - `{Object}` - CSS properties & values at the beginning of animation. Must have matching `to`
578
+ * - **removeClass** - `{string}` - space-separated CSS classes to remove from element
579
+ * - **to** - `{Object}` - CSS properties & values at end of animation. Must have matching `from`
544
580
*
545
581
* @return {Promise } the animation callback promise
546
582
*/
@@ -581,7 +617,13 @@ var $AnimateProvider = ['$provide', function($provide) {
581
617
* @param {string= } className an optional CSS class that will be applied to the element for the duration of the animation. If
582
618
* this value is left as empty then a CSS class of `ng-inline-animate` will be applied to the element.
583
619
* (Note that if no animation is detected then this value will not be applied to the element.)
584
- * @param {object= } options an optional collection of options/styles that will be applied to the element
620
+ * @param {object= } options an optional collection of options/styles that will be applied to the element.
621
+ * The object can have the following properties:
622
+ *
623
+ * - **addClass** - `{string}` - space-separated CSS classes to add to element
624
+ * - **from** - `{Object}` - CSS properties & values at the beginning of animation. Must have matching `to`
625
+ * - **removeClass** - `{string}` - space-separated CSS classes to remove from element
626
+ * - **to** - `{Object}` - CSS properties & values at end of animation. Must have matching `from`
585
627
*
586
628
* @return {Promise } the animation callback promise
587
629
*/
0 commit comments