Skip to content
This repository was archived by the owner on Jul 25, 2022. It is now read-only.

Disable scroll animation #104

Open
marceleq27 opened this issue Aug 11, 2020 · 2 comments
Open

Disable scroll animation #104

marceleq27 opened this issue Aug 11, 2020 · 2 comments

Comments

@marceleq27
Copy link

Hi, is there a way to disable scroll animation?

@jimmynotjim
Copy link
Owner

Really sorry for missing this, I don't get any time to work on scrollnav these days, I hope you understand. Unfortunately there is not a way to disable scroll animation, but that sounds like a great option, especially for visitors with motion issues. I'm not working on new features at this time, but if you wanted to create a PR I'd be happy to look it over and integrate it.

The best option would be to edit this file to check the easingStyle for a value named something like none and if it exists, skip the animateScroll function and just trigger a window.scroll(0, targetPosition);.

@jotchon
Copy link

jotchon commented Oct 19, 2021

Looks like there is a solution to this issue, has anyone looked at the PR? I'm interested in getting the fix because the animation in chrome is delayed and this seems to fix it.

Hope to hear from you soon!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants