Hi All, I was wondering if you might be able to give me some pointers on how I might achieve the following:
I'm looking for an infinitely looping slider where each item overlaps in a coverflow style. The center item would be highest z-index, then each box either side is a layer back, and each box to the side of those are a layer back and so on. I've been playing around with the horizontalLoop() helper, which works really nicely.
My first thought was: if the boxes get removed and added to the dom before/after the active element, i could then loop through all the boxes, and everything before reaching the active element i incrementally add to the z-index, and everything after i decrease the z-index, and just set the z-index of the active element suitably high enough so its always in front. However as the elements are positioned using translate this approach fails (items that visually appear before the active element might actually be after it in the dom).
Also i'm not convinced if my approach would've been very efficient?
I wonder if there might be something else in horizontalLoop that i could hook into to work out which items are positioned left of the central element, and which are after but I'm getting a bit stuck.
Any help or ideas would be amazing.
Thanks!