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 scrollToTop option to scroll to the top of animation target if scroll target is undefined #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dfedynich
Copy link
Contributor

It can be vary handy to allow to scroll to the top of animation element if target scroll element is not found. If we set 'scrollToTop' option to true and leave href with pound sign value only ("#"), then after click we will return back to the top of the element (with predefined offset if it is passed).

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.

1 participant