ギャラリー

ライトボックス要素を使用して、全画面モーダル ウィンドウ内に画像やビデオを表示します。

gallery component displays images (with or without descriptions) or videos within a fullscreen slideshow modal window. Galleries are also adaptable across different screen sizes, making them convenient for showcasing media on computers, tablets, and smartphones.

このチュートリアルでは以下の内容を取り上げます。

  1. Guidelines for setting up a gallery
  2. Adding media to a gallery
  3. Creating connections between galleries using gallery groups

Building a Gallery

Gallery icon thumbnail

A gallery comprises a clickable thumbnail enclosed within a link block. When visitors click inside the link’s boundary on the live site, the gallery opens to reveal the associated media.

To set up a gallery:

  1. 案内する 挿入パネル > 高度な
  2. を選択 gallery component or drag it onto the Webflow canvas
The gallery component highlighted in the Insert panel.

Functionality of the Gallery Thumbnail Image

The gallery contains an image element that operates like any other image element. You can adjust its size, replace the placeholder thumbnail image by double-clicking, and include alternative text. Read more about image elements to explore further.

Image settings for the gallery thumbnail.

You can utilize the same image for the gallery thumbnail and the larger gallery modal window. Webflow automatically generates adaptable versions for all in-line images. Explore more about responsive images for additional details.

The identical image displayed in six various sizes: original, 2000px, 1600px, 1080px, 800px, and 500px.

Changing the Gallery Thumbnail with Alternate Content

You can replace the placeholder image element, and insert various content (e.g., a title, or any non-link components) within the gallery link.

Alternatively, you can use a 分割ブロック and employ a background image to establish equivalently-sized image thumbnails.

A gallery link incorporates an image of the Sutro baths in San Francisco. It features an H1 headline and a paragraph of text. The H1 text reads Sutro Baths, while the paragraph details San Francisco, CA.

Enhancing the Gallery Appearance

You have the capability to design both the gallery link and its content. For instance, if you nest text elements within your gallery link, you can customize the typography of the gallery link component.

Although customization of the background overlay in the modal window that opens upon clicking the gallery link isn’t possible, you can insert an image or video, along with an image description if desired.

Adding Media to the Gallery

To include an image and description in the gallery modal window:

  1. 選択してください gallery link キャンバスに
  2. アクセス 要素設定パネル > Gallery settings > メディア
  3. クリック "Add image” button
  4. 選択する 画像を選択
  5. Pick an image from the アセットパネル
  6. Enter a description in the Caption 分野
  7. 選択する 保存

You can insert numerous images into a gallery link as needed. These images will be showcased as a slideshow within the gallery modal window.

ご注意ください: Presently, gallery elements do not facilitate alternative text for images within the gallery.
The “Add image” button is highlighted in the Media section in Lightbox settings.

In order to insert a video into the lightbox modal window:

  1. 選択してください lightbox link キャンバスに
  2. 案内する 要素設定パネル > Lightbox settings > メディア
  3. Add video” アイコン
  4. Include the URL of the video in the URL 分野
  5. クリック 保存
The “Add video” button is highlighted in the Media section in Lightbox settings.

How to form dynamic lightboxes from Collection field media

It is possible to generate dynamic lightboxes by fetching the thumbnail image and/or lightbox media from media Collection fields (such as an image field, multi-image field, or video field) in your CMS or Ecommerce Collections.

To link a dynamic Collection field to the lightbox thumbnail:

  1. 統合する lightbox into a dynamically-linked Collection list or a CMS Collection page
  2. Choose the placeholder thumbnail image
  3. アクセス 要素設定 > 画像設定
  4. Tick the box marked “Get Image from ブログ投稿” (the Collection name might vary based on the Collection you’ve chosen)
  5. Pick an image Collection field from the フィールドを選択 落ちる

Next, you can establish the connection between the lightbox and the Collection field to make your dynamic Collection images accessible in the lightbox. To attach a dynamic Collection field to the lightbox media:

  1. 選択してください lightbox link
  2. アクセス 要素設定 > Lightbox settings > メディア
  3. Tick the box labeled “Get Media from ブログ投稿” (the Collection name might differ depending on the Collection you’ve selected)
  4. Select a media Collection field from the フィールドを選択 落ちる
The “Get Image from Blog posts” checkbox is checked in Image settings and a “Main image” Collection field is chosen in the dropdown.
The “Get Media from Blog posts” checkbox is selected in Lightbox settings and a “Blog image” Multi-image Collection field is highlighted in the dropdown.

Steps for connecting lightbox units using lightbox clusters

You have the option to interconnect multiple lightboxes to establish a slideshow gallery. Once a visitor clicks on a linked lightbox, all the media related to the associated group of lightboxes will be displayed.

Process to formulate a lightbox cluster

  1. Pick any element within a lightbox
  2. 進む 要素設定 > Lightbox settings
  3. Tick the box labeled as “Interlink with other lightboxes”
  4. Enter a designation for the Cluster
The lightbox settings board features an addition icon for an image, an inclusion icon for a video, a file title and a miniature image with a deletion symbol, a confirmed checkbox for "Interlink with other lightboxes" and a cluster title named "2021 Road trip."

Linking additional lightboxes to the same cluster

To connect other lightboxes to the cluster, follow these steps independently for each lightbox:

  1. Choose any element within the lightbox
  2. 案内する 要素設定 > Lightbox settings
  3. Mark the box titled as “Interlink with other lightboxes”
  4. Input the identical Cluster name
A cluster of lightboxes showcasing four images, displaying an image of the renowned Sutro baths in San Francisco. An attached caption reads "Sutro baths, San Francisco."

When dealing with lightboxes in Collection lists, the act of creating and connecting one lightbox within a Collection item will automatically link all lightboxes present in the Collection list.

The lightbox settings section highlights a confirmed box for "retrieve media from products" obtaining the primary image, a confirmed box for interlinking with other lightboxes, and a cluster name titled 2021 Road trip.

Establish multiple lightbox clusters across a single page

When multiple lightboxes are displayed on the same page, you can segregate them by assigning distinct Cluster names.

ユアン・マック