use-scroll-direction
use-scroll-position
use-scroll-direction | use-scroll-position | |
---|---|---|
1 | 1 | |
30 | 621 | |
- | - | |
0.0 | 0.0 | |
over 1 year ago | about 2 years ago | |
TypeScript | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
use-scroll-direction
-
use-scroll-direction: A hook for simple detecting of scroll direction
use-scroll-direction https://github.com/AndrzejSala/use-scroll-direction As frontend devs, very often, we come to moment when we need to show/hide something on scroll, eg. topbar or some infobox. Based on the API provided by a browser it's not an easy task, we need to make some computation, store somewhere the previous direction and be sure that everything works correctly vast of browsers. To make our lives a little bit easier, at least for react devs, I created use-scroll-direction, a simple, though very performant hook for detecting scroll direction. Here are some key points:
use-scroll-position
What are some alternatives?
react-use-wizard - π§ A React wizard (stepper) builder without the hassle, powered by hooks.
react-native-swiper-flatlist - π Swiper component implemented with FlatList using Hooks & Typescript + strict automation tests with Detox
react-intersection-observer - React implementation of the Intersection Observer API to tell you when an element enters or leaves the viewport.
use-gesture - πBread n butter utility for component-tied mouse/touch gestures in React and Vanilla Javascript.
react-indiana-drag-scroll - React component which implements scrolling via holding the mouse button or touch
react-intersection-revealer - An easy-to-use React hook that tells you whether a component/element is visible on the viewport currently, and if yes, how much of it is visible.
react-keyboard-navigator - A suite of React components and hook for selecting sibling components through the keyboard.
react-cool-inview - π π₯οΈ React hook to monitor an element enters or leaves the viewport (or another element).
react-winbox - The newest React component for WinBox.js. A window manager for React.
react-snap-carousel - DOM-first, headless carousel for React