0.0.8 • Published 11 months ago

vue-3d-product-viewer v0.0.8

Weekly downloads
-
License
MIT
Repository
-
Last release
11 months ago

Vue 3D Product viewer

Introduction:

The ProductViewer creates a rotatable product animation from a collection of images. The rotation is possible on the X-axis, both manually and automatically. There is no fixed number of images it can work with.

Installation:

Vue2

  • yarn add vue2-3d-product-viewer
  • nmp install vue2-3d-product-viewer

Vue3

  • yarn add vue-3d-product-viewer
  • nmp install vue-3d-product-viewer

Import:

  import { ProductViewer } from 'vue2-3d-product-viewer'
  import 'vue2-3d-product-viewer/dist/style.css'

Example:

  <product-viewer
    :images="pictures"
    :speed="20"
    :auto-start="true"
    :swipe-sensitivity="0.30"
  />

Props:

PropsTypeDefaultDescription
imagesArrayrequired (has not default vaule)Array of images
speedNumber20Rolling speed (degree/sec)
autoStartBooleanfalseStarts auto rotating. When the ProductViewer appears on the screen, it automatically starts rotating.
swipeSensitivityNumber0.3Seconds, under mousemove is recognized as swipe
rotationAreaFixedBooleantrueRotate is working only if mouse dragged into product viewer area
sliderVisibleBooleantrueSlider row is another way to rotate the picture. If it's false, the slider won't be visible
0.0.8

11 months ago

0.0.7

11 months ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago