Cloudinary Blog

Add the 360 Product Viewer to Your Commerce Site with Cloudinary

How To Make a jQuery 360 Product Viewer

eCommerce is a dynamic business. Visitors are constantly checking sites for the best deals or their favorite products, adding to their wishlists and exploring product recommendations from friends and influencers. At the same time, online vendors rely on numerous techniques - such as optimizing page load time, using sharp product images and aggressively targeting ads - to draw in shoppers and convert clicks into cash.

When looking for that competitive advantage and an improved shopping experience, one way for business owners to stand out is to include a 360 Degree Product Viewer.

This post will show how you can easily build your own 360 degree product viewer.

Note
All code Snippets will be located in gist.github.

First: The Product Photo Shoot

You may have sharp and crisp images of your product. But in this tutorial, we'll take it up a notch by adding a twist. We're going to use a few features unique to Cloudinary. Take a very short video of your product capturing all angles you would like a potential buyer to see once the product is online.

Be sure to get all angles of the wrist watch in a short video

Build the 360 Product Viewer

The 360 Degree Product Viewer requirements:

Set Up

In an index.html file, reference the libraries for the tools mentioned above at the beginning of the file:

Activate Product Upload and Display

In the body of the index.html file, we’ll add the UI container for an upload button and a 360 display product container:

Upload

Let’s add code for the widget function in the <script></script> tag just before the <body> tag.

Note
Replace cloud_name with yours from the Cloudinary dashboard.

We called for the openUploadWidget function, which pops up a display upload widget for us to upload the product video. In the callback function, we computed the frame gap from the video duration and specified amount of frames obtain from the video per time. In this example, it is set to 100. Then Cloudinary calculates the size of the images based on the viewport and calls the build function.

loading

Add the 360 Degree Product View Magic

The build function does the 360 degree magic:

After the video has uploaded, click the image while dragging the cursor from left to right and back. How’s the experience? Check it out for yourself!

360 degree product viewer

Conclusion

The 360 degree product viewing experience gives eCommerce vendors the advantage needed to showcase your product in a more realistic 3D fashion and improve sales. Apart from greatly improving the eCommerce experience, the 360 degree viewer can be used in countless other ways:

  • Travel - Travel experiences are displayed to help travelers understand what to expect before embarking on a journey, from the interior or exterior of a hotel to different adventures.
  • Real Estate - Prospective homeowners can invite themselves into the homes they want to explore.
  • Event Promotion - Showcase your event or venue by enabling attendees to see the event experience at the point of purchase.
  • For fun- Upload your own video now to test it out!

See the full demo in action!

Recent Blog Posts

ImageCon2018: Toward Excellence in Interactive Visual Media

On April 12, 2018, Cloudinary hosted its second annual ImageCon conference, which brought together more than 200 professionals from developers to architects to designers to executives. We had two main goals for this year’s ImageCon: shine a light on interactive media through presentations by leading industry experts and foster an open exchange of media-related best practices and ideas among the attendees.

Read more
How to Make Boomerang Video Effect With Cloudinary

When you see the term boomerang, what is the first thing that comes to mind?

A thrown tool made of wood that returns to its thrower? Another definition is reversal, logically portraying the aim of the tool itself. Based on this definition, the term boomerang videos” came into play to depict videos that loop back and forth.

Read more
Shortening the Development Cycle of Media-Related apps with Cloudinary

Currently, the Android platform boasts the highest demand for mobile solutions, as evidenced by Google’s announcement in 2017 that there were two billion monthly active Android devices, a number that is likely to increase in the years ahead. For app developers like you, now is the right time to build and release solutions for Android. you might have also noticed that a higher percentage of apps being developed nowadays are filled with visual media: images and videos.

Read more