1.2.2 • Published 2 years ago

scroller-position v1.2.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Scroller-Position

Scroll postion gives you scroll X and Y positions and its ligthweight and fast

Features

  • Lightweight
  • Vertical and horizontal scroll position

Installation

With yarn

yarn add scroller-position

With npm

npm install scroller-position

Getting Started

import { Scroller } from "scroller-position";

export default function Home() {
	const { isOnTop, scrollX, scrollY } = Scroller();

	return (
		<div>
			<p>Is scroll position on top: {isOnTop ? "True" : "false"}</p>
			<p>Vertical Position: {scrollY}px</p>
			<p>Horizontal Position: {scrollX}px</p>
		</div>
	);
}
1.2.2

2 years ago

1.2.1

2 years ago

1.2.0

2 years ago

1.1.9

2 years ago

1.1.8

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago