-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
4,521 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,44 @@ | ||
# \<the-carousel\> | ||
|
||
A polymer 2.0 element to scroll between a list of images | ||
[![License](http://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://github.com/Klaudeta/the-carousel/blob/master/LICENSE) | ||
[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/Klaudeta/the-carousel) | ||
|
||
## Install the Polymer-CLI | ||
# \<the-carousel\> | ||
|
||
First, make sure you have the [Polymer CLI](https://www.npmjs.com/package/polymer-cli) installed. Then run `polymer serve` to serve your element locally. | ||
A polymer 2.0 element used to scroll between a list of images | ||
|
||
## Viewing Your Element | ||
## Installation | ||
|
||
``` | ||
$ polymer serve | ||
bower i --save the-carousel | ||
``` | ||
|
||
## Running Tests | ||
|
||
<!--- | ||
``` | ||
$ polymer test | ||
<custom-element-demo> | ||
<template> | ||
<script src="../webcomponentsjs/webcomponents-lite.js"></script> | ||
<link rel="import" href="the-carousel.html"> | ||
<custom-style> | ||
<style is="custom-style" > | ||
the-carousel{ | ||
width: 100%; | ||
height:374px; | ||
} | ||
</style> | ||
</custom-style> | ||
<next-code-block></next-code-block> | ||
</template> | ||
</custom-element-demo> | ||
``` | ||
--> | ||
```html | ||
<the-carousel autoplay duration=5000 | ||
images='["https://upload.wikimedia.org/wikipedia/commons/3/36/Hopetoun_falls.jpg", | ||
"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRL2asHDVVFOqOOXGmzdZeOBZxUucMmDCgaWPVEJ1mMjghWF3ZY", | ||
"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQlos4IjGrRquY7T5OL3YS2pu4ehW-lvM5T4RpUv14ghYaA1Gz-fA"]' | ||
></the-carousel> | ||
``` | ||
|
||
|
||
## License | ||
|
||
Your application is already set up to be tested via [web-component-tester](https://github.com/Polymer/web-component-tester). Run `polymer test` to run your application's test suite locally. | ||
MIT License |
Oops, something went wrong.