の 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.
このチュートリアルでは以下の内容を取り上げます。
- Guidelines for setting up a gallery
- Adding media to a gallery
- Creating connections between galleries using gallery groups
Building a Gallery
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:
- 案内する 挿入パネル > 高度な
- を選択 gallery component or drag it onto the Webflow canvas
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.
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.
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.
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:
- 選択してください gallery link キャンバスに
- アクセス 要素設定パネル > Gallery settings > メディア
- クリック "Add image” button
- 選択する 画像を選択
- Pick an image from the アセットパネル
- Enter a description in the Caption 分野
- 選択する 保存
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.
In order to insert a video into the lightbox modal window:
- 選択してください lightbox link キャンバスに
- 案内する 要素設定パネル > Lightbox settings > メディア
- 「Add video” アイコン
- Include the URL of the video in the URL 分野
- クリック 保存
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:
- 統合する lightbox into a dynamically-linked Collection list or a CMS Collection page
- Choose the placeholder thumbnail image
- アクセス 要素設定 > 画像設定
- Tick the box marked “Get Image from ブログ投稿” (the Collection name might vary based on the Collection you’ve chosen)
- 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:
- 選択してください lightbox link
- アクセス 要素設定 > Lightbox settings > メディア
- Tick the box labeled “Get Media from ブログ投稿” (the Collection name might differ depending on the Collection you’ve selected)
- Select a media Collection field from the フィールドを選択 落ちる
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
- Pick any element within a lightbox
- 進む 要素設定 > Lightbox settings
- Tick the box labeled as “Interlink with other lightboxes”
- Enter a designation for the Cluster
Linking additional lightboxes to the same cluster
To connect other lightboxes to the cluster, follow these steps independently for each lightbox:
- Choose any element within the lightbox
- 案内する 要素設定 > Lightbox settings
- Mark the box titled as “Interlink with other lightboxes”
- Input the identical Cluster name
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.
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.
- ワークスペーススポットとメンバーの追加または削除 - 2024年4月15日
- センタリングボックスの概要 - 2024年4月15日
- 将来の参照用にサイトを保存する - 2024年4月15日