Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
the-catalin committed Mar 4, 2017
1 parent ce07f91 commit d1e4d9e
Show file tree
Hide file tree
Showing 19 changed files with 1,122 additions and 17 deletions.
17 changes: 0 additions & 17 deletions .gitattributes

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bower_components
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2017 Catalin Ungureanu

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
68 changes: 68 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/the-catalin/cat-slider)

# <cat-slider>

`<cat-slider>` is a [Polymer](https://github.com/Polymer/polymer) element that displays a slider with different possible effects: Ken Burns (zoom effect) and text appearance effects. The image is displayed via [&lt;cat-image&gt;](https://github.com/the-catalin/cat-image) element and the text via [&lt;cat-text&gt;](https://github.com/the-catalin/cat-text) element.

## Demo

## [LIVE DEMO with Config Panel](http://webcomponents.online/cat-slider/)

## Install

Install the component using [Bower](http://bower.io/):

```sh
$ bower install --save cat-slider
```

Or [download as ZIP](https://github.com/the-catalin/cat-slider/archive/master.zip)

## Usage

1. Import Web Components' polyfill (if needed):

```html
<script src="bower_components/webcomponentsjs/webcomponents-lite.min.js"></script>
```

2. Import Custom Element:

```html
<link rel="import" href="bower_components/cat-slider/cat-slider.html">
<link rel="import" href="bower_components/cat-image/cat-image.html">
<link rel="import" href="bower_components/cat-text/cat-text.html">
```

3. Start using it!

```html
<cat-slider>
<cat-image src="http://webcomponents.online/images/01.jpg">
<cat-text> Sample text </cat-text>
<cat-text> Another sample text </cat-text>
</cat-image>
<cat-image src="http://webcomponents.online/images/02.jpg">
<cat-text> Sample text </cat-text>
<cat-text> Another sample text </cat-text>
</cat-image>
</cat-slider>
```

## Contributing

1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -m 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request

## History

For detailed changelog, check [Releases](https://github.com/the-catalin/cat-slider/releases).

## License

[The MIT License (MIT)](https://opensource.org/licenses/MIT)

Copyright (c) 2017 Catalin Ungureanu
39 changes: 39 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"name": "cat-slider",
"version": "0.7.0",
"description": "Displays a slider with different possible effects",
"authors": [
"Catalin Ungureanu <[email protected]>"
],
"keywords": [
"web-components",
"polymer",
"slider",
"image",
"ken burns",
"text",
"effect"
],
"main": "cat-slider.html",
"license": "MIT",
"homepage": "https://github.com/the-catalin/cat-slider",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
],
"dependencies": {
"polymer": "^1.7.0",
"cat-image": "the-catalin/cat-image#^0.8.4",
"cat-decorators": "the-catalin/cat-decorators#^0.8.1",
"cat-animation": "the-catalin/cat-animation#^0.8.5"
},
"devDependencies": {
"iron-component-page": "PolymerElements/iron-component-page#^1.1.7",
"iron-demo-helpers": "PolymerElements/iron-demo-helpers#^1.2.5",
"web-component-tester": "^6.0.0",
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
}
}
Loading

0 comments on commit d1e4d9e

Please sign in to comment.