I’m using smoothscroll.js on my website, that uses the 'click' function.
It works great, problem is – it translates ALL links to toggle with the smooth scroll. This is problematic as I’m implemented small jQuery tabbed areas within a few of the vertical viewports.
Is there another function that acts similar to click that I can use interchangeably?
I see in your question that you’ve added the JQuery tag. The script you use doesn’t seem to use JQuery, I’ve not read each line, but it looks pure JavaScript.
In the javascript file, replace the line:
By this JQuery selector:
And add
class="fooClass"to all the a tag you want to activate smooth scroll.BTW: I found unacceptable that you have to edit the script to do so. If I was you I would look for a more solid JQuery plugin.
You might be interested by theses links: