<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+ 😉
Install with Bower:
$ bower install --save x-iscroll
-
Import Web Components' polyfill:
<script src="bower_components/platform/platform.js"></script>
-
Import Custom Element and iscroll:
<link rel="import" href="bower_components/x-iscroll/dist/x-iscroll.html">
-
Start using it!
<x-iscroll></x-iscroll>
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. |
<x-iscroll> is released under the MIT License.
In lieu of a formal styleguide, take care to maintain the existing coding style.
- 1.0.0
- Initial release
Special thanks to Matteo Spinelli (@cubiq) for his awesome work. :D