I’m trying to create a accordion component and when you open the accordion the image on the right changes. I’m trying to figure out how to do this with interactions. The image would be different with each accordion item.
I’d also like the other accordion items to close when you open another one. Is this even possible? I’m having a hard time figuring it out.
Here’s the components: https://www.figma.com/design/20sc256zFZLvA28UFpzRGo/Accordion-Test?node-id=0-1&t=kpAox86dJyipLIBI-1
Here’s the prototype: https://www.figma.com/proto/20sc256zFZLvA28UFpzRGo/Accordion-Test?page-id=0%3A1&node-id=1-305&viewport=1019%2C334%2C0.34&t=dmFOw4KwqnqwDSQM-1&scaling=min-zoom&content-scaling=fixed