image360
v0.1.0
Published
Rotate image 360°
Downloads
165
Maintainers
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/