My HTML structure includes:
<div class="myDiv">
<div style="width:200px; height:200px;background-image:url('img/200x200/{{largeImg}}.png');"
ng-class="{'magictime foolishIn': 1}">
<span>
{{largeImg}}
</span>
</div>
</div>
I am trying to use the ng-class directive to apply a CSS class to the current element that will trigger a specific animation, similar to the ones shown here.
Although the CSS class is correctly applied when inspected with Firebug, the animation does not play. However, if I replace the dynamic values with hard-coded ones, everything works fine:
<div style="width:200px; height:200px;background-image:url('img/200x200/1.png');"
ng-class="{'magictime foolishIn': 1}">
<span>1</span>
</div>
In AngularJS, I am using $scope.largeImg
as the binding property for this view.