A Pen by egjs

Thumbnail
This awesome code was written by egjs, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright egjs ©
  • HTML
  • JavaScript
<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  <title>A Pen by  egjs</title>
  
  
  
  
  
</head>

<body>

  <div id="myPanoViewer"></div>
  
  

    <script  src="js/index.js"></script>




</body>

</html>

/*Downloaded from https://www.codeseek.co/egjs/a-pen-by-egjs-qpRxgM */
var PanoViewer = eg.view360.PanoViewer;

// create PanoViewer with option
const panoViewer = new PanoViewer(
  document.getElementById("myPanoViewer"),{
    image: "/path/to/image/image.jpg"
  }
);

Comments