https://github.com/lode/object2vr
Loading 360 photos made with object2vr, specifically for Lightspeed eCommerce.
https://github.com/lode/object2vr
lightspeed object2vr-files
Last synced: 9 months ago
JSON representation
Loading 360 photos made with object2vr, specifically for Lightspeed eCommerce.
- Host: GitHub
- URL: https://github.com/lode/object2vr
- Owner: lode
- License: mit
- Created: 2016-12-01T20:46:44.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-12-05T21:05:11.000Z (about 9 years ago)
- Last Synced: 2025-01-30T05:26:27.120Z (11 months ago)
- Topics: lightspeed, object2vr-files
- Language: JavaScript
- Size: 9.77 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# object2vr
Loading 360 photos made with [object2vr](https://ggnome.com/object2vr), specifically for [Lightspeed eCommerce](https://www.lightspeedhq.nl/ecommerce/).
This loads 360 photos over the first image in the gallery of a Lightspeed product page.
## Install
1. Download object2vr and place it on your server.
2. Upload the object2vr files (containing `TDMS_out.xml` and `images/`) to your server.
3. Load the object2vr script on the Lightspeed product page
``` html
object2vr({
locationBase: '//example.com/object2vr' + window.location.pathname,
mimicElement: jQuery('.zoombox .images .zoom.first'),
});
```
Note: the example uses the pathname of the current page as an identifier for finding the object2vr files.
This is an easy way to connect products to an object2vr image. However, other ways of doing this are fine as well.
## Contribute
Pull Requests or issues are welcome!
Some ideas:
- Converting to a generic script working for other CMS environments.
- Making it independent of jQuery.
## License
[MIT](/LICENSE)