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 -

[C++][SFML 2.2] Strange Performance Issues - Moving Mouse Lowers CPU Usage -

gradle error "Cannot convert the provided notation to a File or URI" -