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

Individual sliders #18

Open
k1p57a opened this issue Apr 8, 2018 · 0 comments
Open

Individual sliders #18

k1p57a opened this issue Apr 8, 2018 · 0 comments

Comments

@k1p57a
Copy link

k1p57a commented Apr 8, 2018

Can't seem to figure this one out... If I use more than one slider on a page they all drag simultaneously if I drag one of them.

For now the solution (hack?) I've come up with is creating an individual class for each slider

$('.ba-slider-1').beforeAfter(); $('.ba-slider-2').beforeAfter(); $('.ba-slider-3').beforeAfter(); etc...

and then adding the class to the CSS as well, but it seems a bit of a hassle having to multiply this for every slider I wanna add...

Is there a smarter solution for this by any chance?

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

1 participant