React Navbar Transition
Using useState and useEffect to make the Navbar fade out
Published in
4 min readFeb 19, 2021
In this article, we are going to create a navbar with the effect of fading out when the user scroll down more than 100px.
Related Course:
We are going to create a navbar component, we add the className nav and nav__blue
import React, {useState,useEffect} from 'react'