Topic: how to make the global scrollspy?

Zhe Lee pro asked 5 years ago

The scroll spy now seems a nested scroll spy it can only spy the scroll nested in a page. The spied content is defined like this<div class="scrollspy-example z-depth-1 mt-4" data-spy="scroll" data-target="#navbar-example2" data-offset="0">If I remove the "scrollspy-example" the content become whole page content. And the scrollspy not work again.So how to make global scrollspy.

Duplicate of this


Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.



Specification of the issue

  • User: Pro
  • Premium support: No
  • Technology: General Bootstrap questions
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No