To set up multiple modal windows in Webflow for displaying contact info and enlarged artwork, you'll need to build a reusable modal structure and connect each trigger to its respective content.
Modal Wrapper
.Modal Content
) for your modal content. Style it with padding, background color, and max width.Modal Content
(an image or a button with X
).modal-1
, modal-2
) for each Modal Wrapper
.data-modal-target
modal-1
)For each trigger, create a new Click interaction:
Action: Show/Display the corresponding modal (Set Display to Flex and Opacity to 100%).
For the close button, create another click interaction:
Action: Hide the modal (Set Display to None and Opacity to 0%).
Optionally add a Click to Close interaction on the Modal Wrapper
background (excluding Modal Content) to allow closing by clicking outside the modal.
If you manage paintings in the CMS:
To enable multiple modal windows in Webflow, create a structured modal wrapper for each piece of content, connect each open trigger using unique identifiers or attributes, and control visibility using Webflow interactions. For many similar modals, use the CMS for dynamic content population.