The TypeScript toScroll tools library for orxapi

shell
node -v
v6.9.2
`
Installation
`shell
npm install orxapi.tools.toscroll --save-dev
`
This library is written in TypeScript, but you can use JavaScript. It requires jQuery 2+ to be used.
Usage
TypeScript code
`ts
import * as $ from "jquery";
import { toScroll, handleToScroll } from "orxapi.tools.toscroll";
// Scroll to top page
toScroll({
target: $("body"),
duration: 300
});
// Scroll to target position, initalize with data, see the HTML code
$(".link").on("click.toggleLink", handleToScroll);
// Return the position of contentInformation object if exist
// or the coordinate object with top and left value at 0
const topInfo = getPostion($("#contentInformation")).top
`
HTML code
`html
Best price
...
...
``