Sticky Header with Highlighting Sections on Scroll

added by JavaScript Kicks
8/13/2019 7:17:49 AM

359 Views

We'll use `position: sticky` to lock our sticky header to the content container that it's in when the user scrolls. Using a `useEffect` hook we can monitor the scroll position and determine if the user is looking at a section of our content.


0 comments