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

How do I get a carousel and lightbox with carousel with the same nav arrows? #695

Open
ballmannweber opened this issue Sep 28, 2024 · 0 comments

Comments

@ballmannweber
Copy link

I use the simple div-setup from the docs to generate a carousel in a page and use this code for carousel and fancybox. How can I get the custom svg code get used by the arrows in the carousel as well as in the lightbox carousel?

`{# Carousel #}
const container = document.getElementById("myCarousel");
const options = {
infinite: true,
Navigation: {
nextTpl: '',
prevTpl: '',
},
};
new Carousel(container, options);

{# Fancybox #}
Fancybox.bind('[data-fancybox="gallery"]', {
	contentClick: "close",
	closeButton: false,
	Thumbs: false,
	Images: {
		protected: true
    },
	Toolbar: {
  		display: {
			left: [],
			middle: [],
			right: [],
  		},
	},
});`
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