scroll-percent

    1.0.2 • Public • Published

    scroll-percent

    honeo/scroll-percent
    scroll-percent

    なにこれ

    Element#scrollTop,scrollLeftの%版。
    DEMO

    使い方

    $ npm i -S scroll-percent
    import {scrollTopPercent, scrollLeftPercent} from 'scroll-percent';
     
    scrollTopPercent(element);
    > 0 ~ 100

    Prototype拡張

    ご利用は計画的に。

    import 'scroll-percent/register';
     
    element.scrollTopPercent();
    > 0 ~ 100

    Install

    npm i scroll-percent

    DownloadsWeekly Downloads

    1

    Version

    1.0.2

    License

    MIT

    Last publish

    Collaborators

    • honeo