I am having trouble trying to figure it out today, I want to make 5 elements inside my DOM (which are listed under the same attribute element, $ ('. Elements')) disappear and disappear, and after I read the API a bit, I thought .each () would be a terrific idea to realize the fading and fading of the storefront gallery.
However, I am currently using:
$('.elements').each(function() {
$(this).fadeIn(2000).delay(200).fadeOut(2000).show();
})
but everything immediately disappears and disappears.
How to make a consistent effect when everything is connected together and it starts from the first element in the list (aka - $ ('elements'). Eq (0)?) To the last, and then restarts again?
Do I really need a while loop to do this in javascript / jquery? I was hoping there would be a similar function that I could use for jQuery to reduce the load and create files.
Also, is there a way to limit the flipping of images from my div?
source
share