Comments (3)
Hi, you are missing the option selector in each configuration, so the script initializes only one time all the items with the class '.venobox', which is the default selector if nothing specific is provided.
Remove the class venobox
from your links, and add custom classes, eg: carousel-1
, carousel-2
, and so on...
const carousel1VenoBoxOptions = {
selector: ".carousel-1",
// more options here
});
const carousel2VenoBoxOptions = {
selector: ".carousel-2",
// more options here
});
from venobox.
The selector accepts any valid queryselector, it could also be something like this: selector: "#my-gallery a"
from venobox.
@nicolafranchini thank you! Works correctly now.
By the way, the selector property only accepts a single class, right?
from venobox.
Related Issues (20)
- onPreOpen does not work HOT 1
- overlayClose does not work HOT 2
- Open() fails when VenoBox instance is assigned to a variable. HOT 5
- Open same lightbox not working in second attempt [mobile device only] HOT 1
- Feature Request: Gallery Carousel HOT 1
- trigger click gallery
- development HOT 1
- Swiping doesn't work on Android devices HOT 2
- Cant destroy and restart on ajax call HOT 1
- Error in documentation HOT 1
- venobox cannot zoom in and zoom out using android OS HOT 1
- Feature request: maxHeight 100% of the screen for panoramic images HOT 4
- The spinner named 'wave' is not displayed HOT 1
- onPreOpen function not handling return values HOT 5
- maxWidth does not work correctly due to overwriting width in styles HOT 1
- Windows Defender Wacatac detected HOT 1
- Able to put title underneath the image. HOT 1
- Hide scrollbars entirely? HOT 1
- how can fix this fullscreen button in iframe type and some iframe options when necessary ? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from venobox.