I want to implement a scrolling animation (like Intersection Observer) in Bubble.
I would like to change the color of the corresponding text on the other RG according to the contents of the currently displayed RG.
I’m having a hard time coming up with an implementation image, so if you have any ideas on how to approach this, I’d love to hear from you.
Thank you in advance!
■Components
The following two RepeatingGroups are placed in Group Contents (Container layout is Row).
RepeatingGroup Items
RepeatingGroup item_initials
RG Items: Displays product images and titles in two columns.
RG item_initials: Displays the text of option set “item_initial” vertically.
Item Type
item_name
item_image
etc…
option set “item_initial”
initial_id (number)
Display (A to Z)
■Details
For example, if the first letter of item_name of RG Items currently displayed on the screen is Z, we would like to change the text color of Display Z Text in RG item_initials. Here is another example. If the first letter of item_name of RG Items currently displayed on the screen is G, I want to change the text color of Display G of RG item_initials.
Something like this?
obs: it does not keep track of scroll position, it just saves your last hovered item and then saves it in a custom state, them regex to get te first letter
Can you show the event you used to save your last hovered item inside the repeating group?
I have tried to do something like this before but you can’t reference an element inside of a repeating group in a statement for a workflow so it didn’t work