Object 360 photo viewer ↪️👠↩️
#product
#turntable
#sprite-image
In case using npm,
npm install @egjs/view360 --save
In case using script tag, Download the latest version of view360.js and include using the script tag
<!--script src="/path/to/js/release/3.6.3/dist/SpinViewer/view360.spinviewer.pkgd.min.js"></script-->
<script src="//naver.github.io/egjs-view360/release/3.6.3/dist/SpinViewer/view360.spinviewer.pkgd.min.js"></script>
Your container element’s dimensions should be defined.
<div id="mySpinViewer"></div>
// Or use global namespace
var SpinViewer = eg.view360.SpinViewer;
// Use es6 import
import {SpinViewer} from "@egjs/view360";
// create SpinViewer with option
var spinViewer = new SpinViewer(
document.getElementById("mySpinViewer"), {
imageUrl: "/path/to/image/image.jpg", /*required */
rowCount: 24 /* If count of sprite row/col is lager than 1, this field is required */
}
);
For more information about API, please visit the link.