JavaScript Angular ngAnimate list items automatically fade out angularjs animate list,angular animation list,angular animation list items,

I have a weird issue with ngAnimate in a simple application I'm doing with the MEAN Stack.

Both angular.js and angular-animate.js are 1.4.7 version.

I have an ul that looks something like this:

<ul>
   <li ng-repeat="item in items" class="fade">
      {{item.name}}
   </li>
</ul>

In the controller I'm getting the items array with an $http.get() call to the MongoDB.

This is the CSS code for the simple animation:

.fade {
  transition: 1s linear all;
  -webkit-transition: 1s linear all;
}

.fade.ng-enter {
  opacity: 0;
}

.fade.ng-enter.ng-enter-active {
  opacity: 1;
}

If for example I refresh the page,the controller gets the items array from the Database, and the list items fade in, but they fade out right after the fade in effect.

What is causing this undesired fade effect back to opacity:0 ? Could it be the way the functions I'm using the get the data interact with the view?

Answer:1

I am new to PWA and I am stuck on one task. Here is my manifest.json file which helps to display add to home screen popup to android device. { "short_name": "The Cozy", "name": "The Cozy", "...

I am new to PWA and I am stuck on one task. Here is my manifest.json file which helps to display add to home screen popup to android device. { "short_name": "The Cozy", "name": "The Cozy", "...

  1. show home screen after face id
  2. show home screen icon badge
  3. show home screen iphone
  4. show home screen
  5. show home screen android
  6. show home screen mac
  7. show home screen when all documents are closed
  8. show home screen windows 10
  9. show home screen in excel
  10. show home screen clock
  11. show home screen ios
  12. echo show home screen
  13. alexa show home screen
  14. alexa show home screen options
  15. show me home screen
  16. echo show home screen slideshow
  17. show my home screen
  18. echo show home screen options
  19. amazon show home screen
  20. echo show home screen background

I have three buttons which clone a div and it will show the div before the clicked button. Currently when clicking on a button, the div will appear before all three buttons. I need on click of the ...

I have three buttons which clone a div and it will show the div before the clicked button. Currently when clicking on a button, the div will appear before all three buttons. I need on click of the ...

I have a simple 3 part horizontal bar chart like so: You can check it out on CodeSandbox or try out the code: function App() { return ( <VictoryStack colorScale={['#D0021B', '#F5A623', '#...

I have a simple 3 part horizontal bar chart like so: You can check it out on CodeSandbox or try out the code: function App() { return ( <VictoryStack colorScale={['#D0021B', '#F5A623', '#...

i am trying to set up an user level authentication using node.js, so i go and do npm install -g jsonwebtoken --save. However, i run into problems when i use require('jsonwebtoken'); and try to compile ...

i am trying to set up an user level authentication using node.js, so i go and do npm install -g jsonwebtoken --save. However, i run into problems when i use require('jsonwebtoken'); and try to compile ...

  1. cannot find module 'node-sass'
  2. cannot find module '@angular/core'
  3. cannot find module '@angular/http'
  4. cannot find module '@angular/compiler-cli'
  5. cannot find module 'typescript'
  6. cannot find module 'express'
  7. cannot find module '@babel/core'
  8. cannot find module '@angular/compiler-cli/ngcc'
  9. cannot find module providing package
  10. cannot find module '@angular-devkit/build-angular/package.json'
  11. cannot find module '../lib/utils/unsupported.js'
  12. cannot find module 'webpack-cli/bin/config-yargs'
  13. cannot find module for path
  14. cannot find module 'rxjs-compat/observable'
  15. cannot find module 'webpack'
  16. cannot find module react
  17. cannot find module angular
  18. cannot find module 'babel-preset-env'
  19. cannot find module '@babel/runtime/helpers/interoprequiredefault'
  20. cannot find module 'babel-preset-es2015'