Each Loop
Basic example
// repeats for each .work-cms-item on the page
$(".work-cms-item").each(function (index) {
// select only the text element inside this current item
let childText = $(this).find(".child-text");
// set its text to the current index + 1
childText.text(index + 1);
});Multiple instances of the same section
Connecting two collection lists

Animating only the currently active and previously active items
Last updated