Thanks for the link. I got the “accordion” working.
I have another question though: I want the open section to load a background image, but only on the mouse click interaction. I don’t think you can directly change the bg image property in interactions, and I thought maybe I could set a background image on my section even when it’s closed, and add an opacity animation to the bc image when it’s opened, but I don’t think you can do that either.
Now it’s changing the background color to black, and the text to white, basically inverting the two. That was my goal and this is fine, but my final design has a background image on the section that’s almost transparent. I will also restructure to be full width sections so the background fills the whole width of the page. But my only remaining issue here is to load a bcg image on mouse click.
This is on the Locations page of my project, and the interaction is only on the “PLACE VILLE-MARIE” heading: https://preview.webflow.com/preview/maison-privee?preview=7ebf73ceb50d0f13e53b30f506cd70f1
Thanks for the help