Skip to content

jaketrent/demo-scroll-restoration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm install
npm start
open localhost:8080

Scroll restoration allows one to change the scroll position of a dynamic element on the page and then refresh and have the scroll position return to where it had been before the refresh.

  1. Scroll the nav
  2. Observe the scroll position
  3. Refresh
  4. Observe the same scroll position

About

manually restore scroll position on refresh

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published