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

Not working with multiple instances on one page #44

Open
dannitoma opened this issue May 1, 2024 · 1 comment
Open

Not working with multiple instances on one page #44

dannitoma opened this issue May 1, 2024 · 1 comment

Comments

@dannitoma
Copy link

Hi! It all works great when there's only one zoomist container on the page, but once I add multiple instances it doesn't seem to work. Would you able to help? Thanks.

@cotton123236
Copy link
Owner

Hey there,
this is the way for multiple zoomist

document.querySelectorAll('.zoomist-container').forEach(container => {
  new Zoomist(container, { ... })
})

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