Cloudinary Blog

Adding a 360-Degree Product Viewer to Your E-commerce Site With Cloudinary

How To Create a 360 Product Viewer

E-commerce is a dynamic business. Shoppers are constantly browsing sites for the best deals or for the latest of their favorite products, adding to wish lists, and exploring product recommendations from friends and influencers. On the other hand, online vendors are always on a tear to try to draw in shoppers and convert clicks to cash with various techniques, such as by reducing page-load time, posting compelling product images, and aggressively targeting ads.

One way for e-businesses to maintain a competitive edge and deliver a riveting shopping experience is to display merchandise through a 360-degree product viewer (360 product viewer for short). This post shows you how to easily build one with jQuery on Cloudinary.

Note
All the code snippets in this post are on GitHub Gist.


Sign up for Cloudinary free today!


Step 1: Shoot a Product Video

Cloudinary offers unique capabilities through which you can enhance rich media, no matter how sharp and crisp they might already be. As a first step, take a short video of a product that showcases how it looks from all angles, similar to this one:

Note
Be sure to capture all the angles of your product in the video.

Step 2: Reference the Prerequisite Widget, Library, and JavaScript code

Create an index.html file and reference at the beginning of the file the following—

—with the code in this Gist file (gistfile1.txt).

## Step 3: Activate the Product-Upload and Display Capabilities

Add to the index.html file the code for the following:

Button Labeled Upload Or Take Your Own Video

This process is now in place:

  1. When called, the openUploadWidget function pops up a widget with which you can upload a product video.
  2. The widget function computes the frame gap from the video duration and the number of frames to obtain from the video each time. In this example, that number is 100.
  3. Cloudinary calculates the size of the images based on the viewport and calls the build function.

Loading of Video in Progress
Magic

Try Out the Viewer

Have a try of this 360 product viewer: upload a video, click its image, and drag your cursor from left to right and back. What do you think?

This [30-second demo]https://cloudinary-res.cloudinary.com/video/upload/w_600,c_fill,q_auto/dpr_auto/360_demo.mp4) walks you through the steps for creating the 360 product viewer on a smartphone. Easy as pie!

A 360-Degree View of a Wrist Watchewer

Leverage the Viewer in Various Ways

By offering a 360-degree view, e-businesses can showcase products three-dimensionally, delivering more details and potentially attracting purchases. You can deploy this view for many purposes, for example:

  • Travel. From interior to exterior views of hotels to tours and sights, excursion previews that present a 360-degree view better prepare travelers for upcoming trips.
  • Real estate. A 360-degree view accords prospective home buyers a richer virtual-tour experience.
  • Event promotions. With a 360-degree view, attendees can take in the nuances of an event or venue from the point of purchase.

Want to learn more about image editing?

Have a look at these articles:

Recent Blog Posts

Shoppable Video Is Becoming Popular in E-Commerce

As pandemic restrictions necessitated, many shopping trips in 2020 took place outside the traditional brick-and-mortar store, or at least void of the physical aisle-browsing experience. Same-day curbside pickup became a safe and convenient alternative, and e-commerce transactions skyrocketed as consumers shopped online. In fact, Digital Commerce 360 estimates that, compared to 2019, e-commerce transactions grew by more than 40% last year.

Read more
Enhance Your Travel Site With Cloudinary in Anticipation of a Return to New Normal

Read more
The Benefits of Headless DAMs

Headless is not a buzzword anymore. In fact, the concept of headless architecture is gaining momentum due to the flexibility it offers for composing new experiences and for tackling the undue complexity of an ever-evolving technology stack. That’s because while the evolution of the martech landscape has enabled disruptive, digital innovations, the approach of buying point solutions for solving specific challenges can expose companies to the complicated nature of new technologies, systems, and platforms.

Read more

Building Display Ads With Transparent Video

By Afzaal Ahmad Zeeshan
Build Web Ads With Transparent Video to Attract User Engagement

Billions of views on the Internet every day drive one of the biggest industries on the planet: advertising. The sheer size of that market and the competitive nature of vying for consumer attention results in a constant need for innovation. Readers are jaded, and display ads are blind spots.

Read more
How Cloudinary's Media Optimizer Helps E-Businesses Deliver Superior Web Performance

As a technology company, Cloudinary owes its success to its ability to build solutions that address the most critical challenges you, our customers, face. The companies we serve run the gamut of digital businesses—retailers and direct-to-consumer brands, media and entertainment, travel and hospitality—which, coincidentally, all care about the same things.

Read more