To make images expand in a pop-up (lightbox) when clicked on in Webflow, you can use Webflow’s built-in Lightbox component or create a custom interaction. Here's how to do both methods.
1. Use the Built-In Lightbox Component
- Drag a Lightbox component from the Add Elements panel onto your page.
- Replace the default image with your own thumbnail image.
- In the Lightbox Settings panel, set the Hi-Res Media to the larger version of the image you want to appear in the pop-up.
- You can also group lightboxes (for galleries) by assigning the same Lightbox group name.
This is the easiest and most optimized solution for image pop-ups, especially for portfolios.
2. Convert Existing Image to Lightbox
If you're using regular Image elements and want them to behave like a lightbox:
- Delete the static Image element and replace it with the Lightbox component.
- Reinsert your image into the Lightbox.
- Add the larger version of the image in the settings under Media Settings.
3. Optional: Use Modal Interactions (Custom Pop-up)
If you want more control (e.g., captions, animations):
- Create a div block to act as your modal (position: fixed, 100% width/height, hidden by default).
- Inside that modal, add an Image element and a close button.
- Set up an interaction: When the small image is clicked, set modal display to flex or block, then link the larger image dynamically or via combo classes.
- Set another interaction on the close button to hide the modal again.
This is more complex but gives full design flexibility.
Summary
To make smaller images expand to a pop-up on click in Webflow, use the built-in Lightbox component, which allows easy setup of thumbnail-to-large image interactions. For more customized designs or animations, use a modal with Webflow interactions.