Giter Club home page Giter Club logo

x-iscroll's Introduction

<x-iscroll>

<x-iscroll> is a web component built using Polymer.js which provides smooth scrolling utilities at 60fps using the iScrolljs library.

DEPRECATED : Please use <rv-iscroll> by @itsravenous

His version is supporting Polymer 1.0+ ๐Ÿ˜‰

Demo

Check it live.

Install

Install with Bower:

$ bower install --save x-iscroll

Usage

  1. Import Web Components' polyfill:

    <script src="bower_components/platform/platform.js"></script>
  2. Import Custom Element and iscroll:

    <link rel="import" href="bower_components/x-iscroll/dist/x-iscroll.html">
  3. Start using it!

    <x-iscroll></x-iscroll>

Options

Attribute Options Default Description
zoom boolean false Enables pinch to zoom.
scrollY boolean true Enables scroll on Y axis.
scrollX boolean false Enables scroll on X axis.
freeScroll boolean false Enables free panning when scroll on both axis is enabled.

License

<x-iscroll> is released under the MIT License.

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style.

Release history

  • 1.0.0
    • Initial release

Thanks

Special thanks to Matteo Spinelli (@cubiq) for his awesome work. :D

x-iscroll's People

Contributors

yannickdot avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

x-iscroll's Issues

Polymer 1.0

I was going to submit a PR upgrading this element to work with Polymer 1.0 (which is not backwards-compatible with previous versions), but due to the Polymer syntax changes it was basically a complete rewrite. I've therefore published my own element rv-iscroll. I've given attribution to your work there; I hope you don't mind :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.