You can integrate the viewer with webpack and use the declaration file
install by Go to NPM js to get the 360 viewer @3dweb/360javascriptviewer
Or include the latest version of the script directly on your page.
current version of 360 viewer

Starting with 360 images

First you need images, a lot of images.
More images means smoother rotations but also more CPU and RAM usage for your clients.
Consider a number which can split 360 to a whole number. 36 Images means 10 degrees rotation and 72 means 5 degrees.

screenshot of explorer with named images