Detect scroll direction in react applications.
MIT License
Published by SMAKSS 7 months ago
We are excited to announce the release of @smakss/react-scroll-direction
version 4.1.0. This version brings several improvements and bug fixes that enhance the functionality and usability of our React scroll direction detection hook.
Improvements:
Bug Fixes:
A big thank you to @astralarya, @KubaZachacz and the community for their continuous support and feedback, which have been invaluable in making this release possible.
Full Changelog: https://github.com/SMAKSS/react-scroll-direction/compare/v4.0.4...v4.1.0
Published by SMAKSS 9 months ago
Published by SMAKSS 9 months ago
Published by SMAKSS 10 months ago
Published by SMAKSS 10 months ago
Published by SMAKSS 10 months ago
Published by SMAKSS 10 months ago
Published by SMAKSS 10 months ago
We are excited to announce the release of version 4.0.0 of the @smakss/react-scroll-direction
hook. This major update brings significant enhancements to the hook, introducing the ability to detect not only the scroll direction but also the precise scroll position within the viewport. This feature is essential for developers looking to create more dynamic and responsive UI interactions in their React applications.
scrollDir
and scrollPosition
. scrollDir
gives the direction of the scroll, while scrollPosition
provides an object with top
, bottom
, left
, and right
properties, indicating the scroll distance from respective edges of the viewport.To upgrade to the latest version, run:
npm install @smakss/[email protected]
# or
yarn add @smakss/[email protected]
import useDetectScroll from '@smakss/react-scroll-direction';
function Component() {
const { scrollDir, scrollPosition } = useDetectScroll();
// Use scrollDir and scrollPosition as needed
}
Special thanks to our contributors and users for their feedback and suggestions that have shaped this release. Your continued support and engagement are invaluable to the growth of this project.
For more updates, follow us on GitHub and stay tuned for more exciting features!
Published by SMAKSS 10 months ago
Published by SMAKSS 10 months ago
Published by SMAKSS 10 months ago
Published by SMAKSS 11 months ago
Published by SMAKSS 11 months ago
Published by SMAKSS 12 months ago
Fix the dependencies vulnerabilities.
Full Changelog: https://github.com/SMAKSS/react-scroll-direction/compare/v3.1.2...v3.1.3
Published by SMAKSS 12 months ago
Published by SMAKSS 12 months ago
Published by SMAKSS 12 months ago
Published by SMAKSS 12 months ago
nvm install 18
nvm use 18
yarn install
This will make sure you're using the correct Node.js version, and your dependencies are up to date.
Published by SMAKSS 12 months ago
Published by SMAKSS 12 months ago