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

Conflict when using sections with number IDs #43

Closed
eablokker opened this issue Oct 19, 2015 · 1 comment
Closed

Conflict when using sections with number IDs #43

eablokker opened this issue Oct 19, 2015 · 1 comment

Comments

@eablokker
Copy link

This took me way too long to figure out.

I had given my sections ID numbers like <section id="0"></section>, <section id="1"></section>, etc. This caused the animation when scrolling down to run backwards and scroll up, because there was a conflict between the hash in the URL and the ID of the section. Anyways it works fine if you use anything other than a number for the section IDs. Maybe mention this in the documentation?

@lukehaas
Copy link
Owner

lukehaas commented Mar 4, 2016

This is standard browser behaviour. Browsers will anchor to an ID if it matches the hash. This is why Scrollify uses data attributes for section names instead of IDs.

@lukehaas lukehaas closed this as completed Mar 4, 2016
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

2 participants