Smooth Scroll controls?

I appreciate that there is a smooth page scroll function built into Beaver but where on earth are the controls for it?
I would like to change the speed, easing effects, adjust offsets, etc…

I would also like to add some scripts to highlight the links for my navbar when a section is in view, hash mark change for the browser, etc…

Before I can do any of that I need to know where is the code for the smooth scrolling located.

I also need to know how to turn off Beaver’s scroll function for instances where I want to use other scroll plugins and or scripts.

Thanks in advance for your attention.

Hey DJ,

The smooth scrolling functionality is baked into BB so changing it would just break on update. We would suggest using your own smooth scrolling functionality, but the ability to turn off BB’s smooth scrolling option isn’t available. This is great feedback though that we’ll take into consideration for a future release. Would you mind adding this a feature request to our User Voice forum so we can review in the near future?

Best,
Billy

Where exactly is the smooth scrolling baked in? If Beaver gets updated I will change it again.
I will do the feature request as you asked me to on the User Voice forum.
Beaver is great I am glad to help in any way to make it better.
Cheers!

Hey DJ,

Thanks! It’s baked into js/fl-builder-layout.js and this is the function _scrollToElementOnLinkClick. We release a lot of updates so I would suggest just keeping an eye out start of each week to ensure your custom coding stays intact!

Best,
Billy

1 Like

Thank you too!