MCPcopy Create free account
hub / github.com/angular-ui/ui-router / prepareInAnimation

Function prepareInAnimation

test/angular/1.5/angular-animate.js:1674–1689  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1672 }
1673
1674 function prepareInAnimation() {
1675 var endingClasses = filterCssClasses(getClassVal(inAnchor));
1676 var toAdd = getUniqueValues(endingClasses, startingClasses);
1677 var toRemove = getUniqueValues(startingClasses, endingClasses);
1678
1679 var animator = $animateCss(clone, {
1680 to: calculateAnchorStyles(inAnchor),
1681 addClass: NG_IN_ANCHOR_CLASS_NAME + ' ' + toAdd,
1682 removeClass: NG_OUT_ANCHOR_CLASS_NAME + ' ' + toRemove,
1683 delay: true
1684 });
1685
1686 // read the comment within `prepareRegularAnimation` to understand
1687 // why this check is necessary
1688 return animator.$$willAnimate ? animator : null;
1689 }
1690
1691 function end() {
1692 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