d4nyll / smartscroll

jQuery plugin for scrolljacking and auto-hashing
https://d4nyll.github.io/smartscroll/
MIT License
257 stars 45 forks source link

URL hash update based on scroll is not working. #39

Closed sabrinaazad closed 6 years ago

sabrinaazad commented 6 years ago

I am trying to use this plugin. I see the headerHash appear but it does not update as I scroll. I have attached pictures of what my code looks like and there are no console errors so I know the syntax is not the issue. Please help! Also, I have the three script files included below all my code right before the closing body tag.

screen shot 2017-12-19 at 1 46 04 pm screen shot 2017-12-19 at 1 46 13 pm

sabrinaazad commented 6 years ago

UPDATE: So now the anchor is working but it is not reading the first data-hash="welcome" it starts at dog but is anchoring dog to the beginning of the website which is hashed welcome.

sabrinaazad commented 6 years ago

screen shot 2017-12-19 at 2 56 31 pm screen shot 2017-12-19 at 2 56 16 pm

d4nyll commented 6 years ago

Your updated issue is related to #30, which has just now been fixed.

Also, make sure you put your <div class="section"> divs inside the <div class="section-wrapper"> div.