locomotivemtl / locomotive-scroll

🛤 Detection of elements in viewport & smooth scrolling with parallax.
https://locomotivemtl.github.io/locomotive-scroll
MIT License
7.98k stars 1.12k forks source link

Can I preserve my scroll position when reloading the page? #504

Open Specticall opened 1 year ago

Specticall commented 1 year ago

Hi, I have recently started using locomotive scroll and liked it alot.

However, its behaviour of jumping back to the top of the page everytime the page refreshes can be really annoying, especially in development. I was wondering if there are any ways to disable this behaviour temporarily for development?

Thanks!