overflow:auto

A headless vinilla javascript micro component. Easy configuration using HTML5 attributes or Javscript api.

Install

npm i @cocreate/scroll

Or you can use cdn link:

<script>https://cdn.cocreate.app/scroll/latest/overflow:auto.min.js</script>

Usage

This is scroll usage

                                
<div scroll-up_class="up" scroll-down_class="down" scroll-ing_class="scrolling" scroll-range_class="range" scroll-range_begin="1000" scroll-range_end="1500" scroll-intersect="intersect">
                            

This is scroll usage

This is scroll usage

Attributes

  • scroll-up_class string optional

    Scroll-Up-Class

  • scroll-down_class string optional

    Scroll-Down-Class

  • scroll-ing_class string optional

    Scroll-Range-Class

  • scroll-range_class string optional

    Scroll-Range-Class

  • scroll-range_begin number optional

    Scroll-Range-Begin

  • scroll-range_end number optional

    Scroll-Range-End

  • scroll-intersect string optional

    Scroll-Intersect

Demo