1.0.11 • Published 2 years ago

use-scroll v1.0.11

Weekly downloads
5
License
ISC
Repository
github
Last release
2 years ago

Scroll behaviors for use with history. Inspired by scroll-behavior and simplify the behavior.

Usage

Enhance your history object with this library to get standard scroll behavior after history changed.

import { browserHistory } from 'react-router';
import useScroll from 'use-scroll';
const history = useScroll(browserHistory);

Guide

Installation

$ npm install history use-scroll

TODO

  • add test
  • add x position?