Nationwide Polamorous Matrimony
    Have ideas to improve npm?Join in the discussion! »

    nice-scroll-native

    1.0.0 • Public • Published

    NiceScrollNative

    A simpler alternative to jquery.nicescroll - with limitations

    If you desire a far simpler, native alternative to jquery.nicescroll, look no further. But note that this has both advantages and disadvantages.

    Advantages

    • uses the native scrollbar
    • extremely light weight
    • vanilla JS, no dependencies required
    • more customizable with editable SCSS and JS files
    • mimics jquery.nicescroll reasonably well
    • doesn't create a ton of extra DOM objects
    • no JS running in the background to keep calculating said objects' positions
    • no need to control behaviour, such as resizing the thumb based on change of scroll height
    • scrolls large content far faster (using home/end keys)

    Disadvantages

    • Webkit browsers only, with an approximation for Mozilla built in
    • doesn't overlap, takes up space in the browser body
    • no animations, such as fade in/out
    • body scroll only; will consider making it applicable to any scrollable element

    Install

    npm i nice-scroll-native

    DownloadsWeekly Downloads

    4

    Version

    1.0.0

    License

    none

    Unpacked Size

    4.25 kB

    Total Files

    6

    Last publish

    Collaborators

    • avatar