The code I have flips 6 tiles after the page is loaded. This works fine.
var flipTiles = function() {
$('.flip-tile').each(function( i, el ) {
var elDelay = $(el).data('delay');
$(el).delay(elDelay).queue(function() {
$(this).flip(true);
$(this).dequeue();
});
});
};
flipTiles();
My question is how could I make this so the tiles keep flipping. Like there page loads and the tiles flip with there own delay. After all tiles flipped I wanna restart the sequence and flip them back etc.
Any help is appreciated! Thanks in advance :)