Skip to content

the-catalin/cat-slider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Published on webcomponents.org

<cat-slider>

<cat-slider> is a Polymer element that displays a slider with different possible effects: Ken Burns (zoom effect) and text appearance effects. The image is displayed via <cat-image> element and the text via <cat-text> element.

Demo

Install

Install the component using Bower:

$ bower install --save cat-slider

Or download as ZIP

Usage

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

    <script src="bower_components/webcomponentsjs/webcomponents-lite.min.js"></script>
  2. Import Custom Element:

    <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!

    <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.

License

The MIT License (MIT)

Copyright (c) 2017 Catalin Ungureanu