Trying to figure out how to get the even rows in a repeater. I've seen loop.index used to target specific rows but not for all the even or odd rows. Any help is appreciated. Thanks
Instead of using loop.index it will be much better to use class or id by {{name}}
Like <div class="{{ name }}"> give this class in top of your repeater module and close div after repeater module and give your css like as shown in below image , you can define all your css like this then you can get ability to control each card module , no matter how many times you are using same module
Hope this helps!
If we were able to answer your query, kindly help the community by marking it as a solution. Thanks and Regards.
Thanks @ChehakWadhdwa - I think I should provide more information as I'm not understanding how your suggestion will accomplish what I'm trying to create.
I have a vertical animated timeline that reveals itself on page scroll. I want the repeater fields to alternate its starting animation either from the left or from the right. So what I need is for all the odd repeater fields to have the class "js--fadeInLeft" and all the even repeater fields to have the class "js--fadeInRight". Below is the code I'm using for reference: