library for offering simple tools fetching every single DOM info and performing actions


License
MIT
Install
npm install kc-scroll@0.2.70

Documentation

kc-scroll

library for offering simple tools fetching every single DOM info and performing actions

comm.js

In this file, we've got three basic functions:

  • currentYPosition
  • elmYPosition
  • smoothScroll

Those functions are collected from below:

Javascript smooth scroll WITHOUT the use of jQuery

Usage

Installing this lib from npm like:

$ npm install kc-scroll@latest --save

Then, just import it like:

import { currentYPosition, elmYPosition, smoothScroll } from 'kc-scroll';

And you can start to use these three basic functions.