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

Sound Browser: Grand Prize Winner of the Capitol360 Hackathon

Music videos, which comprise an important part of the video-streaming industry, are consistently the most-viewed content on streaming giants, such as YouTube and Vimeo. In exchange for free viewing, those channels serve advertisements for revenue. That business model creates a clumsy user experience, however, as a result of often-repeated ads that don't relate to the content.

Read more
Building a Live Feed of FIFA World Cup Moments

Widely acclaimed as the world’s biggest sporting event, the World Cup has established itself as the most captivating tournament to look forward to across the globe. Dating back to 1930, when the first World Cup was hosted in Uruguay, it has always engendered numerous moments of excitement, not only for the participating teams but also for the countries they ably represented. Little could anyone have anticipated that a game of 22 able-bodied men running to take possession of a leather ball could become so famous.

Read more
Auto AI Content Recognition Tagging in Cloudinary DAM

Automating the categorization of your images and videos can help democratize access to your organization's creative assets. Many teams throughout your organization have likely spent a lot of time and effort generating high-quality content, but it'd be all for naught if the content just ends up in some anonymous folder on somebody's hard drive or is randomly dropped into your cloud storage with no functional organizational strategy.

Read more
Capitol 360 Incubating New Waves of MusicTech

Last month, we had the pleasure of supporting Capitol Music Group’s first ever hackathon, the first in a series of hackathons as part of its newly launched Capitol360 Innovation Center, established to bridge the gaps between music and tech and make music better for everyone. We are proud to be a founding technology partner and were honored to play a part in Capitol’s first-ever 24-hour hack. And because so many of us are avid and longtime music fans we’re also personally thrilled to have the opportunity to work with one of the most influential leaders in music to foster these new and meaningful connections.

Read more
Headshot transformations from Fluent + Velocity 2018

On June 13-14, O'Reilly held its annual Fluent + Velocity conference in San Jose and it was great! Cloudinary set up a pretty incredible booth and brought in a professional photographer to take headshots of the attendees who stopped by. Once a photo was snapped, the raw camera file was immediately uploaded to our media library and transformed into something that can be posted right away on LinkedIn.

Read more