Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add delay to scroll for less jarring page transitions #220

Merged
merged 1 commit into from
Oct 31, 2020

Conversation

jimohalloran
Copy link
Contributor

PR with code suggested by @bmpf in issue #201 . I experimented a bit with the timeout, and if you use much less than 190 the effect is quite jarring (almost as bad as not making the change at all). Longer than 190 and the animated transition finishes, then after a slight delay you jump to the top of the page. 190 seems to be a sweet spot where the scroll upwards occurs just as the animation finishes and it looks quite smooth.

@bmpf
Copy link

bmpf commented Nov 2, 2019

Thanks @jimohalloran

@cretueusebiu cretueusebiu changed the base branch from master to next October 31, 2020 17:58
@cretueusebiu cretueusebiu merged commit 50b2308 into cretueusebiu:next Oct 31, 2020
@cretueusebiu cretueusebiu mentioned this pull request Oct 31, 2020
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants