JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q68198F
  • License MIT

Rotate image 360°

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

Demo Github Pages

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/