0.2.3 • Published 3 years ago

cld-360 v0.2.3

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

cld-360

  • A Simple 360° Product Viewer built on Vue.js

Features

  • 360° View
  • Zoom
  • Pan
  • Autoplay (Loops)
  • Full Screen Mode
  • Spin Direction
  • Image Caching
  • Mobile Responsive
  • Touch Events

Installation

npm install cld-360

Config

import VueThreeSixty from 'cld-360'

Vue.use(VueThreeSixty)

Example

<vue-three-sixty 
  :amount=36
  imagePath="https://scaleflex.cloudimg.io/width/600/q35/https://scaleflex.ultrafast.io/https://scaleflex.airstore.io/demo/chair-360-36"
  fileName="chair_{index}.jpg?v1"
/>

Adding a Header

<template v-slot:header>
  36 Images - Autoplay (1 loop) - Reverse Spin
</template>

Props

NameTypeDescriptionRequiredDefault Value
amountNumberNumber of imagesYes
imagePathStringPath to your imageYes
fileNameStringFile name formatYes
spinReverseBooleanReverse SpinOptionalfalse
autoplayNumberAutoplay your imagesOptional24
loopNumberNumber of loops you want to autoplayOptional1
Optionalfalse
paddingIndexBooleanApply Leading Zero to Image IndexOptionalfalse
disableZoomBooleanDisable Zoom FunctionalityOptionalfalse
scrollImageBooleanScroll Images instead of Default ZoomOptionalfalse
btnBgColorStringButtons Background colorOptional#F1F1F2
btnColorStringButtons Background colorOptional#666666
btnRoundedNumberButtons rounded bordersOptional0
btnSizeNumberButtons sizeOptional28

Buttons

(In order from left to right)

  • Play/Pause
  • Zoom In
  • Zoom Out
  • Move Left
  • Move Right
  • Reset Position
  • Fullscreen

Credits

0.2.3

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago