Bootstrap 4 Scrollspy |
Here's an example of scrollspy,
Use the nav component to create scrollspy links. If you would like to know how to create nav components click here.
To create scrollspy, Include data-spy="scroll" attribute to your scroll content element then add data-target="#navbarNav" attribute to specify the target element then add a unique ID to your each content area that should be mentioned in your each navigation items like above code sample.
Comments