MCPcopy Index your code
hub / github.com/angular-ui/ui-grid / prepareInAnimation

Function prepareInAnimation

lib/test/angular/1.7.0/angular-animate.js:1680–1695  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1678 }
1679
1680 function prepareInAnimation() {
1681 var endingClasses = filterCssClasses(getClassVal(inAnchor));
1682 var toAdd = getUniqueValues(endingClasses, startingClasses);
1683 var toRemove = getUniqueValues(startingClasses, endingClasses);
1684
1685 var animator = $animateCss(clone, {
1686 to: calculateAnchorStyles(inAnchor),
1687 addClass: NG_IN_ANCHOR_CLASS_NAME + ' ' + toAdd,
1688 removeClass: NG_OUT_ANCHOR_CLASS_NAME + ' ' + toRemove,
1689 delay: true
1690 });
1691
1692 // read the comment within `prepareRegularAnimation` to understand
1693 // why this check is necessary
1694 return animator.$$willAnimate ? animator : null;
1695 }
1696
1697 function end() {
1698 clone.remove();

Callers 1

prepareAnchoredAnimationFunction · 0.70

Calls 4

filterCssClassesFunction · 0.70
getClassValFunction · 0.70
getUniqueValuesFunction · 0.70
calculateAnchorStylesFunction · 0.70

Tested by

no test coverage detected