How do you customize the offset that ScrollSpy uses to change the active item?

  • data-offset
  • data-custom
  • data-change
  • data-adjust
To customize the offset that ScrollSpy uses to change the active item, you use the data-offset attribute. This allows you to set a specific offset value to trigger the change in the active navigation item based on the scroll position.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *