javascript - ngAnimate stoped working in AngularJS 1.6.4 -


i've got simple application simple css animation works charm in angularjs 1.2.2 + nganimate 1.2.2:

-> runnable demo works charm.

for (maybe) no reason same codes doesn't work angularjs 1.6.4 + nganimate 1.6.4:

-> broken animation demo

the animation css classes not added. there no error in console. can't figure out whats wrong here. please note $scope.pictures dummy data.

view

<!doctype html> <html>     <head>         <meta charset="utf-8">         <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js"></script>         <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular-animate.min.js"></script>         <link rel="stylesheet" href="./style.css">         <script src="app.js"></script>          <title></title>     </head>     <body ng-app="portfolio">         <div class="gallery" ng-controller="gallerycontroller">           <div class="appear" ng-repeat="picture in pictures"></div>         </div>     </body> </html> 

angularjs application

/*global angular, console*/ var app = angular.module('portfolio', ['nganimate']); (function() {   "use strict";   /* gallery controller */   app.controller('gallerycontroller', function(       $scope     ) {       $scope.pictures = [           "http://www.d3d.sk/images/mk2_granade_full.png",           "http://www.d3d.sk/images/aberry-logo.jpg",           "http://www.d3d.sk/images/logo-aberry.png",           "http://www.d3d.sk/images/crystal_balls.jpg",           "http://www.d3d.sk/images/purple_sun.jpg",           "http://www.d3d.sk/images/planets.jpg",           "http://www.d3d.sk/images/d3d.jpg",           "http://www.d3d.sk/images/bpg-logo.png",           "http://www.d3d.sk/images/logo - bukona.jpg",           "http://www.d3d.sk/images/sky_up_fire.jpg",           "http://www.d3d.sk/images/plexus.jpg",           "http://www.d3d.sk/images/dch.jpg",           "http://www.d3d.sk/images/dimonsium-front-a.jpg",           "http://www.d3d.sk/images/dwts-3.jpg",           "http://www.d3d.sk/images/dwts-redesign-1.png",           "http://www.d3d.sk/images/diplom.jpg",           "http://www.d3d.sk/images/genessis.jpg",           "http://www.d3d.sk/images/genessis - logo-final.jpg",           "http://www.d3d.sk/images/genessis - logo.jpg",           "http://www.d3d.sk/images/goholor.jpg",           "http://www.d3d.sk/images/iron.jpg",           "http://www.d3d.sk/images/bg_body3.jpg",           "http://www.d3d.sk/images/bg_body4.jpg",           "http://www.d3d.sk/images/lampa-2.png",           "http://www.d3d.sk/images/maxenergy-design.jpg",           "http://www.d3d.sk/images/north-first-2.jpg",           "http://www.d3d.sk/images/north side dres - ver 1c.jpg",           "http://www.d3d.sk/images/oznamko-16.jpg",           "http://www.d3d.sk/images/oznamko-17.jpg",           "http://www.d3d.sk/images/verzia4e.jpg",           "http://www.d3d.sk/images/svk-dres.jpg",           "http://www.d3d.sk/images/rool-up04bc.jpg",           "http://www.d3d.sk/images/senica-letak-maly.jpg",           "http://www.d3d.sk/images/merkur - dizajn - 4.jpg",           "http://www.d3d.sk/images/trades-world-2.jpg",           "http://www.d3d.sk/images/web-1.jpg",           "http://www.d3d.sk/images/web-3.jpg",           "http://www.d3d.sk/images/web-5.jpg",           "http://www.d3d.sk/images/web-7.jpg",           "http://www.d3d.sk/images/web-8.jpg",           "http://www.d3d.sk/images/web-10.jpg",           "http://www.d3d.sk/images/web-11.jpg",           "http://www.d3d.sk/images/vizitka.jpg"         ];     }); }()); 

styles

.appear.ng-enter {     transition: 0.5s linear transform, 0.8s linear opacity;     opacity: 0;     transform: scale(0); }  .appear.ng-enter.ng-enter-active {     opacity: 1;     transform: scale(1); } 


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -