@kano/x-carousel
v3.0.0-beta.2
Published
`x-carousel` allows user to navigate through an overflowed section using button or touch depending on the device.
Downloads
8
Readme
x-carousel
x-carousel
allows user to navigate through an overflowed section using button or touch depending on the device.
Installation
- Clone this repo
- Install the dependencies with
bower install
Usage
Import the component into your project, e.g.
<link rel="import" href="../bower_components/x-carousel/x-carousel.html">
And declare the component with content to fill the slots (buttons are optional):
<x-carousel>
<button type="button" slot="left-button" carousel-control-left>
<
</button>
<div class="cards" slot="content">
<div class="card"></div>
<div class="card"></div>
...
</div>
<button type="button" slot="right-button" carousel-control-right>
>
</button>
</x-carousel>
Contributing
- Fork this repo and clone it locally
- Follow the installation instructions above
- Use Polyserve in development
- Make a new branch and commit your changes
- Push to your repository and make a pull request
Credits
Developed at Kano Computing Ltd.
License
GNU GENERAL PUBLIC LICENSE, version 3. See LICENSE.