css - Jquery fade in images one by one, in reverse -


i using below code fade in each image 1 1. how in revers images load in opposite order?

  img {display:none;}   $('img').each(function(i) {       $(this).delay(i * 100).fadein();   }); 

you use normal loop , decrement

for(var count = $('img').length-1; count >= 0; count--) {     $('img:eq('+count+')').fadein(); } 

hope helps.


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

Simple Angular 2 project fails 'Unexpected reserved word' -

php - Get process resource by PID -