I'm trying to randomize this function i made, but i've only found a random TimeOut solution. I want the order to be random not the timeout.
$(document).ready(function() {
function boucle() {
$('#test img').fadeTo(1000, 0);
$('#test img').delay(1000).each(function(i) {
$(this).delay((i++) * 1500).fadeTo(1500, 1);
});
}
boucle();
setInterval(boucle, 15000);
});
I tried this solution http://ift.tt/1IlSrH3 but this is not what i want. And this one how to fadein LI elements randomly? (jquery) don't work for me...
Could someone please help me make that random loop ? Thank You in advance.
Aucun commentaire:
Enregistrer un commentaire