A Polymer carousel element
Maintained by Addy Osmani.
Install with Bower:
$ bower install --save polymer-ui-carousel
- Import Web Components' polyfill:
<script src="platform.js"></script>
- Import Custom Element:
<link rel="import" href="polymer-ui-carousel.html">
- Start using it!
With bullet controls:
<polymer-ui-carousel>
<div>One</div>
<div>Two</div>
<div>Three</div>
<div>Four</div>
<div>Five</div>
</polymer-ui-carousel>
With text label controls:
<polymer-ui-carousel labels="true">
<div title="Alpha">One</div>
<div title="Beta">Two</div>
<div title="Gamma">Three</div>
<div title="Delta">Four</div>
<div title="Epsilon">Five</div>
</polymer-ui-carousel>
In order to run it locally you'll need a basic server setup.
-
Install Node.js
-
Install Grunt:
$ npm install --global grunt-cli
-
Install local dependencies:
$ npm install
-
Run a local server and open
http://localhost:8000
.$ grunt connect
Attribute | Options | Default | Description |
---|---|---|---|
textLabels |
boolean | false |
use custom text labels instead of the default bullet controls |
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -m 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
For detailed changelog, check Releases.