Package Exports
- image360
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (image360) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Rotate object in 360° on mouse drag and on touch move
Use CDN
<script src="https://unpkg.com/image360/dist/index.js"></script>
Or install as package
npm install image360
Usage
import Image360 from 'image360';
const image360 = new Image360(
document.getElementById('targetImageOrBlockId'), {
preload: true,
imagesUrls: ['pathToImage1.jpg', 'pathToImage2.jpg', ... 'pathToImageN.jpg'],
});
Based on: https://vk-book.ru/kartinka-360-gradusov-na-javascript/