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

scroll to the top of the page #107

Open
kaji2 opened this issue Jul 11, 2017 · 0 comments
Open

scroll to the top of the page #107

kaji2 opened this issue Jul 11, 2017 · 0 comments

Comments

@kaji2
Copy link

kaji2 commented Jul 11, 2017

Hi,
I'd like to scroll to the top of the page with the following tag <a href="#"> or <a href="#top">, but there is not smooth animation.
Of course, when I wrote <body id="top"> and with <a href="#top">, it works.

According to the specification, href="#top" and href="#" means to link to the top of the page.
cf. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a

You can use href="#top" or the empty fragment href="#" to link to the top of the current page. This behavior is specified by HTML5.

So, I suggest that it will work without <body id="top">.
Thanks.

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

No branches or pull requests

1 participant