I was tasked with creating a cascading effect for a list of items (each one comes in a fraction of a second later than the other). So you can imagine how excited I was when I discovered ng-animate
. I already populated my list with ng-repeat
, so it seemed as simple as adding that & modifying the CSS. This is what I'm shooting for: How to delay ngAnimate in ngRepeat
But it doesn't seem to actually function. Any ideas? Here's my fiddle example: fiddle ng-animate.
html
<ul class="results-nav">
<li class="" ng-animate="'animate'" ng-repeat="domain in resultsNav.domain" ng-click="scrollTo(domain.id)">{{domain.title}}</li>
</ul>
css
.animate-enter {
-webkit-transition: 1s linear all; /* Chrome */
transition: 1s linear all;
opacity: 0;
}
.animate-enter.animate-enter-active {
opacity: 1;
}
As you can see in my fiddle, it doesn't do anything on run.