Socket
Book a DemoInstallSign in
Socket

polymer-simple-slider

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

polymer-simple-slider

A Polymer element providing a simple slider functionality

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

<simple-slider>

NPM version Published on webcomponents.org

A Polymer element providing a simple slider functionality.

Maintained by Ruy Adorno.

Demo

<simple-slider style="width:400px; height:400px">
    <img src="http://placekitten.com/g/400/400"/>
    <img src="https://unsplash.it/400/400/?random=0"/>
    <img src="https://unsplash.it/400/400/?random=1"/>
    <img src="https://unsplash.it/400/400/?random=2"/>
</simple-slider>

Check more examples.

Usage

  • Install using Bower (also available on npm)

    bower install --save polymer-simple-slider
    
  • Import Web Components' polyfill:

    <script src="bower_components/webcomponents.js/webcomponents.js"></script>
    
  • Import Custom Element:

    <link rel="import" href="bower_components/polymer-simple-slider/simple-slider.html">
    
  • Start using it!

    <simple-slider style="width:500px; height:500px">
        <img src="foo/bar1.png"/>
        <img src="foo/bar2.png"/>
        <img src="foo/bar3.png"/>
    </simple-slider>
    

Options

version: 1.1.0

AttributeOptionsDefaultDescription
no-auto-playBooleanfalseIf this attr is present, do not auto play slides
transitionPropertyleft, right, opacityleftDetermines the css property to be animated
transitionDurationNumber0.5Value setting the duration of animation transition
transitionDelayNumber3Value determining the wait between each animation when you use autoPlay:true
startValueNumber-elem.widthInitial value of slide elements when starting a transition animation
visibleValueNumber0The value a slide element should have when it is displayed
endValueNumberelem.widthThe value a slide will move to during a transition animation

Contributing

  • 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

History

For detailed changelog, check Releases.

More info

This project is a simple polymer element implementation of SimpleSlider. Please visit its page for more information.

License

MIT License

Keywords

web-components

FAQs

Package last updated on 24 Jan 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts