-
Hi Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
fancyapps
Aug 24, 2021
Replies: 2 comments 1 reply
-
Update : |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi, See this demo - https://fancyapps.com/playground/FS const myCarousel = new Carousel(document.querySelector("#myCarousel"), {
Dots: false,
on: {
init: (carousel) => {
carousel.$index = carousel.$container.querySelector(".carousel_index");
carousel.$count = carousel.$container.querySelector(".carousel_count");
},
refresh: (carousel) => {
if (carousel.$count) {
carousel.$count.innerHTML = carousel.pages.length;
}
},
change: (carousel) => {
if (carousel.$index) {
carousel.$index.innerHTML = carousel.page + 1;
}
},
},
}); |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
bckthomas
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
See this demo - https://fancyapps.com/playground/FS