Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ruyadorno/polymer-simple-slider

A Polymer element providing a simple slider functionality
https://github.com/ruyadorno/polymer-simple-slider

carousel html polymer-element simple-slider slide slider

Last synced: 15 days ago
JSON representation

A Polymer element providing a simple slider functionality

Awesome Lists containing this project

README

        

# <simple-slider>

[![NPM version](https://badge.fury.io/js/polymer-simple-slider.svg)](https://npmjs.org/package/polymer-simple-slider) [![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://beta.webcomponents.org/element/ruyadorno/polymer-simple-slider)

A Polymer element providing a [simple slider](http://ruyadorno.github.io/SimpleSlider) functionality.

> Maintained by [Ruy Adorno](https://github.com/ruyadorno).

## Demo

```html




```

> [Check more examples](http://ruyadorno.github.io/polymer-simple-slider).

## Usage

1. Install using Bower (also available on npm)

```sh
bower install --save polymer-simple-slider
```

2. Import Web Components' polyfill:

```html

```

3. Import Custom Element:

```html

```

4. Start using it!

```html





```

## Options

version: 1.1.0

Attribute | Options | Default | Description
--- | --- | --- | ---
`no-auto-play` | Boolean | `false` | If this attr is present, do not auto play slides
`transitionProperty` | `left`, `right`, `opacity`| `left` | Determines the css property to be animated
`transitionDuration` | Number | `0.5` | Value setting the duration of animation transition
`transitionDelay` | Number | `3` | Value determining the wait between each animation when you use **autoPlay:true**
`startValue` | Number | `-elem.width` | Initial value of slide elements when starting a transition animation
`visibleValue` | Number | `0` | The value a slide element should have when it is displayed
`endValue` | Number | `elem.width` | The value a slide will move to during a transition animation
`auto-reload` | Boolean | `false` | If this attr is present the slider is reset whenever one of its child elements change

## 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 :D

## History

For detailed changelog, check [Releases](https://github.com/ruyadorno/polymer-simple-slider/releases).

## More info
This project is a simple polymer element implementation of [SimpleSlider](http://ruyadorno.github.io/SimpleSlider/). Please visit its page for more information.

## License

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