Open a picture large when clicked

Add a Lightbox to a picture so a click opens it large over a dark backdrop, and choose its size, padding, backdrop colour and speed.

Updated 24 Nov 2026

A Lightbox lets a visitor click a picture and see it large, over a colour that covers the page. A click on the backdrop, or the Escape key, closes it. This page covers the Lightbox settings. For the other effects, see Add motion.

Add it

  1. Click the picture on the canvas.
  2. Open the Effects tab, next to Styles.
  3. Click the + and choose Lightbox.
  4. Click the button on the new row to open its settings.
  5. Publish your site. Effects show on the live page, not while you edit.

Lightbox is only in the list for an Image element. If the image has no picture yet, it is grey and says Needs a picture in the image. Choose a picture first, then add it.

The settings

Setting What it does Default
Max width The widest the large picture can be, in pixels. It starts at 800. The picture is never wider than the screen allows. 800
Padding The empty space kept between the large picture and the edges of the screen, in pixels. It starts at 20. Use the two small buttons beside the number: the first keeps one number for all sides, the second (Padding per side) sets Top, Right, Bottom and Left one by one. Max width and Padding have - and + buttons, and the up and down arrow keys change them by 1 (hold Shift for 10). 20
Z index Which layer the lightbox sits on when you have more than one. From -1 to 10, and it starts at 10. A higher number sits in front. 10
Backdrop The colour that covers the page behind the picture. It starts at black, 80% solid. Click the colour to change it (it opens a Fill picker). Click the x to have no backdrop, so the picture opens over the page. Click Add... to bring it back. Black, 80% solid
Transition How the picture grows from its place and goes back. See Set the speed and feel of an effect. Spring, 0.4 seconds, bounce 0.2

The picture keeps its own shape. It grows from where it sits on the page, and when closed it goes back there. The visitor sees the largest version of the picture you uploaded.

What the visitor can do

  • Click the picture, or reach it with the Tab key and press Enter or Space, to open it.
  • Click the backdrop (not the picture), or press Escape, to close it. The keyboard focus goes back to the picture.
  • Screen readers announce the open picture as a dialog and read the picture's description (alt text), so write one for every picture.

On phones

The picture is shrunk to fit the screen, keeping your Padding, so it is never wider than the phone. A visitor taps the picture to open it and taps the backdrop to close it.

When it opens with no motion

The picture opens and closes with no animation when:

  • the visitor has switched off motion on their device;
  • the picture has a move, turn or scale of its own from a Hover, Loop or other effect;
  • the picture sits inside a Ticker.

Questions

Can I add a Lightbox to a box with a background picture? No. It works on an Image element only.

Does it slow my page? Only pages that use a Lightbox load the small script it needs. A page with no Lightbox loads nothing extra.

Does it show on the canvas? No. Publish your site to see it on the live page.

More in this topic

Back to Help centre

Still stuck?

Write to us and a person replies.

Email [email protected]