Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 582 Bytes

README.md

File metadata and controls

26 lines (20 loc) · 582 Bytes
__      __________/\________________
  |    /         / /
  |   /  __     / /   /
  |  /  /\ \   | / ——/—— /__   __
  | /  /  \/   /    /   /  /  /  \   /
  |/   \__/\__/\___/\__/   \_/__/ \_/

Development sponsored by voltra.co

SYNOPSIS

Scroll window (or element) to Y, optionally animate it.

const scrollToY = require('scrolltoy')

const position = n
const time = 200

scrolltoy(window, position, time)
npm install voltraco/scrolltoy