<!-- define a div element that will hold the 360 HD Viewer -->
<div id="put-viewer-here"></div>

body, html{
  margin:0px;
}
#put-viewer-here {
  height:512px;
  width:100%;
  margin-left:auto;
  margin-right:auto;
  /* Old browsers */
  background: #999999; 
  /* FF3.6-15 */
  background: -moz-linear-gradient(top, #999999 1%, #cacaca 39%, #dedede 48%, #f5f5f5 100%); 
  /* Chrome10-25,Safari5.1-6 */
  background: -webkit-linear-gradient(top, #999999 1%,#cacaca 39%,#dedede 48%,#f5f5f5 100%); 
  /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  background: linear-gradient(to bottom, #999999 1%,#cacaca 39%,#dedede 48%,#f5f5f5 100%); 
  /* IE6-9 */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#999999', endColorstr='#f5f5f5',GradientType=0 ); 
}

/*Override style for the viewer tooltip text */
.cylindo-drag-tooltip,.cylindo-zoom-drag-tooltip{
  color:#B2A2D3 !important;
}
// declare the variable that will hold the 360 HD Viewer instance
var viewerInstance = null;
// the opts object should hold the start properties of the 360 HD Viewer
var opts = { 
  'accountID': 4404,
  'SKU': 'SOFA_2_PNG',
  'features': ["COLOR","BLUE"],
  'country': 'us',    
  'containerID': 'put-viewer-here', 
  'format': 'png'
}

// make sure the cylindo framework has been "installed"
if (cylindo) {
  // do not instantiate the viewer until the framework reports ready.
  cylindo.on('ready', function () {
    // create the instance
    viewerInstance = cylindo.viewer.create(opts);
  });
}

External CSS

  1. https://viewer.cylindo.com/3.x/v3.3.1/viewer.css

External JavaScript

  1. https://viewer.cylindo.com/3.x/v3.3.1/viewer.js