qhr-scroll-index

get scroll index

Usage no npm install needed!

<script type="module">
  import qhrScrollIndex from 'https://cdn.skypack.dev/qhr-scroll-index';
</script>

README

qhr-scroll-index

获取滚动模块的下标

Usage

import MyUtil from 'qhr-scroll-index'

const myUtil = new MyUtil();

myUtil.getIndex({
  ids: ['a', 'aa', 'aaa', 'aaaa', 'aaaaa'],
  option: this.observerOpt,
  callBack: this.getCurrentCB
})