Programmatic controller with anchor names and navigation history #65
-
Hi! I've found how to navigate with fullpageController and sectionController, however i'm comparing with fullpage.js behaviour and wish to record navigation history and maybe use just one anchor name and not index number. Any help is welcome! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hey, thanks for asking. My answer won't make you happy, but here it is. There is no such a feature as navigation history, so for now if you need this kind of functionality, you would need some complicated solution eg. using intersection observers. |
Beta Was this translation helpful? Give feedback.
-
https://github.com/alvarotrigo/fullpage.js Here a great library for fullpage, but yours is more simple and readable. |
Beta Was this translation helpful? Give feedback.
Hey, thanks for asking. My answer won't make you happy, but here it is. There is no such a feature as navigation history, so for now if you need this kind of functionality, you would need some complicated solution eg. using intersection observers.
But if you need some ground for implementing history, I can make quick minor version with option to add callback on
fullpageController
orsectionController
navigation, which allows you to make wrapper around controllers and thus record navigation states.And that other thing about anchor name, I'm not familiar with fullpage.js terminology, but if I got you correctly, you want to be able to navigate to section/slide based on it's title, right?