Skip to content

Power-Howdy/use-scroll-direction

Repository files navigation

Use-scroll-direction Showcase

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.

Features

  • Detects and displays the current scroll direction (up or down).
  • Simple user interface to demonstrate the functionality.

Getting Started

Prerequisites

  • Node.js and npm installed on your machine.
  • A modern web browser.

Installation

  1. Clone the repository:

    git clone https://github.com/Power-Howdy/use-scroll-direction.git
    cd use-scroll-direction
  2. Install the dependencies:

    npm install
  3. Start the development server:

    npm start
  4. Open your web browser and navigate to http://localhost:3000 to see the application in action.