Smooth scroll to bookmark

In the demo, pressing a button that links to a local bookmark produces a smooth scroll to the bookmark, which is quite attractive.

However, when I set up a “Call to Action” button that links to a local bookmark down the page, the page snaps abruptly to the bookmark, without scrolling smoothly.

How can I get the smooth scrolling back?

Hello @skyline,

Please try to use this link structure in your scroll menu item: #section-id, instead of http://example.com/#section-id.

Please feel free to ask any other questions that you might have.

Kind Regards, Roman.

That’s what I am already doing. In the source code, the link appears as:

<a href="#requestform">Request a quote</a>

Hello @skyline,

Can you please provide a link to your website to let me inspect it?

Kind Regards, Roman.

It’s currently in a temporary folder at http://exactexte.com/newtheme/

Hello @skyline,

Smooth scrolls works only from the menu or for links which have the .button class.

Kind Regards, Roman.

Doesn’t look the button has an option to set the class, so I used the code at http://www.w3schools.com/jquery/tryit.asp?filename=tryjquery_eff_animate_smoothscroll. Works great now.

Hello @skyline,

It’s great that it works now!

Please feel free to ask any other questions that you might have in future.

Kind Regards, Roman.