https://github.com/wlada/vue-carousel-3d 上按照自己需要稍作修改,并非原创
此包是在原地址Vue Carousel 3d
Feel free to submit issues and feature requests here.
Full documentation and examples
Table of Contents
Installation
npm install -S vue-carousel-3d
Usage
Usage (Global)
You may install Vue Carousel 3d globally:
;;Vue;
This will make <carousel-3d> and <slide> available to all components within your Vue app.
Usage (Local)
Include the Carousel 3d into your component using import:
;...components:Carousel3dSlide...;
HTML Structure
Once the Carousel3d and Slide components are installed globally or imported, they can be used in templates like below:
Slide 1 ContentSlide 2 Content
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
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:
npm installnpm run dev
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.