__ __________/\________________
| / / /
| / __ / / /
| / /\ \ | / ——/—— /__ __
| / / \/ / / / / / \ /
|/ \__/\__/\___/\__/ \_/__/ \_/
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