useWindowScroll

Track and manipulate window scroll position.

Live Demo Placeholder

Interactive demo coming soon.

Usage Example
1import { useWindowScroll } from '@danixsoft/hooks';
2
3function Example() {
4  const [{ x, y }, scrollTo] = useWindowScroll();
5  
6  return <div>Scrolled to {x}, {y}</div>;
7}