Image & Video APIs
Menu

Product Gallery in React (video tutorial)

Last updated: Nov-24-2025

Overview

With the Product Gallery, Cloudinary has created an easy way to dynamically display your images, videos, 3D models and 360 animations/spin sets on your website! This tutorial teaches you how to embed the gallery in a React app.

Video tutorial


This video is brought to you by Cloudinary's video player - embed your own!
Use the controls to set the playback speed, navigate to chapters of interest and select subtitles in your preferred language.

View the code
You can find the code from this tutorial in GitHub.

Tutorial contents

This tutorial presents the following topics. Click a timestamp to jump to that part of the video.

Add the Product Gallery script

Jump to this spot in the video 0:11 To add the Product Gallery to your app, first add the Product Gallery script to the index.html file.

Initialize the Product Gallery within a useEffect

Jump to this spot in the video 0:26 Initialize the Product Gallery within a useEffect linked to the window, and calling the gallerywidget method.

Set the Product Gallery options

Jump to this spot in the video 0:35 Configure the gallery with your cloud name, a container reference, and the assets to display by providing a tag common to them all.

Add a tag to multiple assets

Jump to this spot in the video 1:17 You can select multiple assets in the Media Library and add a tag to them all.

Enable resource lists

Jump to this spot in the video 1:26 Make sure that resource listing is enabled in your Restricted media types settings.

Use the render method to display the Product Gallery

Jump to this spot in the video 1:34 Use the render method to display the Product Gallery.

Customize the Product Gallery

Jump to this spot in the video 1:46 Customize the Product Gallery by changing the appearance of the widget including changing the aspect ratio, adding video assets, and changing the carousel navigation icons to indicators on the bottom.

Keep learning

Related topics

If you like this, you might also like...

Check out the Cloudinary Academy for free self-paced Cloudinary courses on a variety of developer or DAM topics, or register for formal instructor-led courses, either virtual or on-site.

AltStyle によって変換されたページ (->オリジナル) /

✔️ Feedback sent!

✖️
How helpful was this doc page?

Thanks for submitting your rating. We got it!
We'd love to hear more. Tell us what you liked and how we can make this page even better:

*


Cloudinary is committed to protecting your information security. For details, see our privacy policy.

For additional assistance, open a support request.

Error

Unfortunately there's been an error sending your feedback.

Rate this page: