I have a repeating group of photo locations and I’d like to show a photo I’ve taken when the user hovers on that item/text in the repeating group.
Is this possible?
I have a repeating group of photo locations and I’d like to show a photo I’ve taken when the user hovers on that item/text in the repeating group.
Is this possible?
Absolutely. Check out the Conditional tab of the properties editor. Set the photo to not be visible on page load. Then, the logic in the Conditional tab for the item to be hovered would simply be something like, “when this text is hovered, make the photo visible.”
@sudsy thanks!
My hang up is getting the photo to appear adjacent to the text regardless of its order in the list (or whether it’s in the list at all).
Any ideas?
Well, I’m thinking an Image element would have to be added to the RG cell (perhaps inside a Group Focus or Floating Group element) along with the element that triggers its appearance. The image displayed within the Image element can be set dynamically.
I tinkered a bit, and it’s not as straightforward as I initially thought.
Showing an image overlay on click would be easy, but doing so on hover is a bit problematic (mostly because Bubble seems to use “mousemove” as the hover event instead of “mouseenter”, which means it fires continuously when the mouse moves within the target).
Anyway, since there’s no hover on mobile, perhaps clicking an icon is a workable compromise?
Thanks for tinkering! Yes, clicking an icon could work. I’ll try it out and post here if I have issues.