Good day, I can modify the JS/Jquery to automatically detect `.animated-photos` elements and to set the timeout for calling `set_gallery`. And then modify `set_gallery` to automatically detect the images in the given `animated-photos` element for use in changing the src of the first images.
Here is a small snippet of how I would do the timeout to show that I can complete the project:
$('.animated-photos').each(function(i) {
var timeout = i % 4 * 1500;
setTimeout(function() {set_gallery(this)}, timeout);
});
I can start immediately.
Regards,
Pieter