voltraco / scrolltoy

Scroll the browser window or an element to Y position, optionally animate it.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

__      __________/\________________
  |    /         / /
  |   /  __     / /   /
  |  /  /\ \   | / ——/—— /__   __
  | /  /  \/   /    /   /  /  /  \   /
  |/   \__/\__/\___/\__/   \_/__/ \_/

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

About

Scroll the browser window or an element to Y position, optionally animate it.


Languages

Language:JavaScript 100.0%