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

Multiple jscroll in same page. #48

Closed
prasanthbendra opened this issue Nov 20, 2014 · 9 comments
Closed

Multiple jscroll in same page. #48

prasanthbendra opened this issue Nov 20, 2014 · 9 comments

Comments

@prasanthbendra
Copy link

How can I implement multiple jscroll in same page ?

I tired to implement 2 jscroll, but only one works, If i comment one the other one works.How can i make both of them work ?

regards,
Prasanth

@elouet
Copy link

elouet commented Jan 16, 2015

I have the same issue, I don't think the plug-in sustains this type of usage (unless it's my mistake). It would be nice to have several parallel incrementing columns on a single page.

@pklauzinski
Copy link
Owner

You certainly can. You may create as many jScroll instances on a page as you wish, each with its own set of options.

As shown on the official website, http://jscroll.com, there are three examples on the same page.

            $('[data-ui="jscroll-default"]').jscroll({
               debug: true
            });

            $('[data-ui="jscroll-example2"]').jscroll({
                autoTrigger: false,
                debug: true
            });

            $('[data-ui="jscroll-example3"]').jscroll({
                autoTriggerUntil: 3,
                debug: true
            });

@borayeris
Copy link

Not working.

@pklauzinski
Copy link
Owner

@borayeris - that doesn't help me resolve your problem. Please point me to an example of your code, or place one up on http://codepen.io/. Thanks.

@borayeris
Copy link

I forked your code. You will understand.

@mkwsra
Copy link

mkwsra commented Mar 1, 2016

@borayeris You've to calm down buddy 😄
And @pklauzinski Can you show me how to solve such thing?

@mkwsra
Copy link

mkwsra commented Mar 1, 2016

And he changed something did you check it out?
https://github.com/borayeris/jscroll/commit/712070f875f52e0ef8f570b18ee1b01cd3ed457c

@lucia33
Copy link

lucia33 commented Aug 15, 2016

for my case, it doesn't work if the same default setting is expected, say I want all elements work on scroll (default)

@Enalmada
Copy link

Enalmada commented May 24, 2018

If you got here from google search and are having trouble getting two jscroll at the same time, the pull request #119 above is probably the solution...it worked for me.

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

7 participants