Guide
Installation
1 | npm install -S vue-carousel-3d |
Usage (Global)
You may install Vue Carousel 3d globally:
1 | import Vue from 'vue'; |
This will make <carousel> and <slide> available to all components within your Vue app.
Usage (Local)
Include the carousel 3d into your component using import:
1 | import { Carousel3d, Slide } from 'vue-carousel-3d'; |
HTML Structure
Once the Carousel3d and Slide components are installed globally or imported, they can be used in templates like below:
1 | <carousel-3d> |
Keep in mind that index property on slide component is required property and you will need to pass it for every slide starting from 0
Scoped Slots
You can use scoped slots to access current slide index, left and right indexes
1 | <carousel-3d> |
Development
Dev environment is created by vue-play. Changes made to the component files will appear in real time in the sandbox.
To begin development, run:
1 | npm install |
now open http://localhost:5000
in your browser
You can modify and add scenarios in play/index.js
License
This project is licensed under the MIT License - see the LICENSE.md file for details.