Home

Awesome

bloody-scroll

Smooth scrolling to given coordinates for the browser

Build Status

Install

$ npm install --save bloody-scroll

Import

import scroll from "bloody-scroll"

API

promise scroll({ x: number, y: number}, duration = 300)

Arguments

Returns

Example

scroll({ x: 0, y: 1000 }, 1000)
scroll({ x: 1000 }, 1000)
scroll({ y: 400 }, 1000)