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

Scrollspy Usage (Improvement) #173

Open
jaidevshriram opened this issue Mar 17, 2019 · 1 comment
Open

Scrollspy Usage (Improvement) #173

jaidevshriram opened this issue Mar 17, 2019 · 1 comment

Comments

@jaidevshriram
Copy link

There is a fixed side navbar for navigating the page. Currently, the introduction item is permanently marked as active. Using bootstrap's scrollspy, the section that the user is currently viewing would be highlighted.

Current Situation:

Possible Outcome:

image

Fix:

One line code addition required to enable scrollspy. Documentation for this feature can be found here

@jaidevshriram
Copy link
Author

<body data-spy="scroll" data-target="#sidenav" data-offset="50">

Something like this should do the trick.

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