1.0.8 • Published 9 months ago

vue3-product-spinner v1.0.8

Weekly downloads
-
License
-
Repository
github
Last release
9 months ago

Installation

npm

npm i vue3-product-spinner

Usage

VueProductSpinner will allow you to add any component in order to handle the image prefetch time. You can use it as follows:

<template>
  <VueProductSpinner 
    :imgs="imgs" 
    :slider="true"
  >
    <PreloadSpinnerComponent />
  </VueProductSpinner>
</template>

<script>
  import VueProductSpinner from 'vue-product-spinner'
  import PreloadSpinnerComponent from 'some-library'

  export default {
    components: {
      VueProductSpinner
    },
    data() {
      return {
        images: [
          'img1.jpg',
          'img2.jpg',
          'img3.jpg'
        ]
      }
    }
  }
</script>

props

Prop NameTypeIs RequiredDefault ValueDescription
imagesstring[]required[]An array of images to be displayed
infiniteBooleanoptionaltrueInfinite loop
speedNumberoptional3Rotation speed
touchDragBooleanoptionaltrueHandle touch events
mouseWheelBooleanoptionaltrueHandle mouse wheel events
mouseDragBooleanoptionaltrueHandle mouse drag events
sliderBooleanoptionalfalseShow slider input
sliderClassStringoptionalCustom slider CSS class

Roadmap

  • Add image preloader
  • Add auto spin
  • Add hooks
  • Solve basic bugs
  • Add "mouse move" support
  • Add "mouse scroll" support
  • Add slider support
  • Add touchscreen support

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

1.0.8

9 months ago

1.0.7

9 months ago

1.0.6

9 months ago

1.0.5

9 months ago

1.0.4

9 months ago

1.0.3

9 months ago

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago