Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/micheleriva/vue-product-spinner

🚗 A 3D product spinner for Vue.js with no dependencies
https://github.com/micheleriva/vue-product-spinner

3d 3d-spinner design ecommerce es6 hacktoberfest presentation product product-management spinner vue vue-components vue2 vuejs

Last synced: about 5 hours ago
JSON representation

🚗 A 3D product spinner for Vue.js with no dependencies

Awesome Lists containing this project

README

        



The product spinner that Vue.js was missing.



Build Status

VueProductSpinner weekly downloads




MIT License

Sponsors



GraphCMS




Become a sponsor

Live Demo












Try it on CodeSandbox!


Edit Vue Product Spinner Demo

# Installation

**npm**
```sh
npm i vue-product-spinner
```

**yarn**
```sh
yarn add vue-product-spinner
```

**UMD build**
```html

```

# Usage
**VueProductSpinner** will allow you to add any component in order to handle the image prefetch time.

You can use it as follows:

```html



import VueProductSpinner from 'vue-product-spinner'
import PreloadSpinnerComponent from 'some-library'

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

```

# props

| Prop Name | Type | Is Required | Default Value | Description |
|-|-|-|-|-|
| images | `string[]` | `required` | `[]` | An array of images to be displayed|
| infinite | `Boolean` | optional | `true` | Infinite loop |
| speed | `Number` | optional | `3` | Rotation speed |
| touchDrag | `Boolean` | optional | `true` | Handle touch events |
| mouseWheel | `Boolean` | optional | `true` | Handle mouse wheel events |
| mouseDrag | `Boolean` | optional | `true` | Handle mouse drag events |
| slider | `Boolean` | optional | `false` | Show slider input |
| sliderClass | `String` | optional | | Custom slider CSS class |

# Roadmap

- [x] Add image preloader
- [ ] Add auto spin
- [ ] Add hooks
- [ ] Solve basic bugs
- [x] Add "mouse move" support
- [x] Add "mouse scroll" support
- [x] Add slider support
- [x] Add touchscreen support

# Buy Me a Beer!

[![Beerpay](https://beerpay.io/micheleriva/vue-product-spinner/badge.svg?style=beer)](https://beerpay.io/micheleriva/vue-product-spinner)

Please help me maintain my projects with a little and simple donation! I need beer to work! 😃

# License
This project is licensed under the MIT License - see the [LICENSE.md](/LICENSE.md) file for details.