I'm making a portfolio grid with a fadeIn effect that fades in li after li (portfolio image after the next one).
I've tried many approaches but it won't work.
(function($){
$.fn.showdelay = function(){
var delay = 0;
return this.each(function(){
$(this).delay(delay).fadeIn(1800);
delay += 1000;
});
};
})(jQuery);
$(document).ready(function(){
$('#portfolioslider li').showdelay();
});
How can I fix this?
Many thanks in advance.
Here is the code!