-
Notifications
You must be signed in to change notification settings - Fork 465
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
FIXED - Waypoints Navbar Active Accuracy & Dynamic / Responsive Header Height #38
Comments
Nice one. I like this a lot. Looks like it will also adapt to menu height changes resulting from responsive layout. Can't wait to try it. |
you are missing $(window).stellar(); in your extended script.js. otherwise it works perfectly! |
@keroberts Thanks guys! Your code saved my life!! |
Hi guys! Thanks for this fix, helped me a lot. However, my parallax effect stopped working after I've updated my old script by yours. I'm using Stellar.js to get the parallax effect. How can I fix this? Thanks in advance. |
@immigrantsheep Oh yeah thanks! I missed it off whilst extracting it from my production script :) Now added to the original post. |
Thanks @keroberts! I had seen the hint that @immigrantsheep gave. I just didn't know where to insert. Thanks again! |
thanks! I like it! |
Thanks man. this freakin' solved my issues. :( |
Hi, everything seems to work better now, but the active link is stuck on the first list item in the navigation. There are no errors in the code, it just doesnt seem to be running the toggle active state part. Help? |
This solution still fixe the issue but be careful you must use the waypoint library in version 2, not the latest version (3 currently) |
To fix the waypoint inaccuracy, and to have a Dynamic header height without relying on using a fixed value padding to compensate:
1 - replace the waypoint v1 library with v2. Can be found here:
https://github.com/imakewebthings/jquery-waypoints .
This is crucial as v2 supports multiple waypoints which will be required.
2 - make sure your header has the class .menu as per the cool kitten grid.
3 - Replace script.js with my extended version below:
Enjoy!
Notes. You may see a 1px "step" at the end of the scroll animation. I haven't been able to cure this yet, and i think it has something to do with browser rounding on responsive slide heights that aren't whole numbers.
The text was updated successfully, but these errors were encountered: