This project showcases the use of a custom React hook called useScrollDirection
, which detects the scrolling direction of the user's mouse on the page. The application displays the current scrolling direction dynamically.
- Detects and displays the current scroll direction (up or down).
- Simple user interface to demonstrate the functionality.
- Node.js and npm installed on your machine.
- A modern web browser.
-
Clone the repository:
git clone https://github.com/Power-Howdy/use-scroll-direction.git cd use-scroll-direction
-
Install the dependencies:
npm install
-
Start the development server:
npm start
-
Open your web browser and navigate to
http://localhost:3000
to see the application in action.