Navigations
Automatically update navigation or list group components based on scroll position to indicate which link is currently active in the viewport.
Note that this component requires the use of our Scrollspy plugin, else you can skip this message if you are already using Preline UI as a package.
Scroll the area below the navbar and watch the active class change. The dropdown items will be highlighted as well.
Scrollspy also works with nested lists. If a nested list is .active
, its parents will also be .active
. Scroll the area next to the navbar and watch the active class change.
Provides destroy
method that helps to destroy a scrollspy.
This is some placeholder content for the scrollspy page. Note that as you scroll down the page, the appropriate navigation link is highlighted. It's repeated throughout the component example. We keep adding some more example copy here to emphasize the scrolling and highlighting.
This is some placeholder content for the scrollspy page. Note that as you scroll down the page, the appropriate navigation link is highlighted. It's repeated throughout the component example. We keep adding some more example copy here to emphasize the scrolling and highlighting.
This is some placeholder content for the scrollspy page. Note that as you scroll down the page, the appropriate navigation link is highlighted. It's repeated throughout the component example. We keep adding some more example copy here to emphasize the scrolling and highlighting.
This is some placeholder content for the scrollspy page. Note that as you scroll down the page, the appropriate navigation link is highlighted. It's repeated throughout the component example. We keep adding some more example copy here to emphasize the scrolling and highlighting.
This is some placeholder content for the scrollspy page. Note that as you scroll down the page, the appropriate navigation link is highlighted. It's repeated throughout the component example. We keep adding some more example copy here to emphasize the scrolling and highlighting.