Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Target multiple classes or id with 1 anchor link #8

Closed
silvermanners opened this issue Feb 26, 2014 · 1 comment
Closed

Target multiple classes or id with 1 anchor link #8

silvermanners opened this issue Feb 26, 2014 · 1 comment

Comments

@silvermanners
Copy link

Hello,
Is it possible to do this? Basically, as you click, it scrolls to the ids or classes specified. $('#SECTION1, #SECTION2, #SECTION3').animatescroll({scrollSpeed:1000,easing:'easeInOutBack'});">Scroll to Multiple Elements

@rampatra
Copy link
Owner

rampatra commented Mar 1, 2014

Yes it can be done but for that you have to do a small change in the plugin. Remove the call to stop() in the plugin (line 152 and 156) and then you can call like this onclick="$('#section1).animatescroll();$('#section2).animatescroll();" and so on.....

@rampatra rampatra closed this as completed Mar 1, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants