Closed bgastaldi closed 10 months ago
Hi,
Use the loading
event to create your own element and specify it as slide.spinnerEl
. Example:
Fancybox.bind('[data-fancybox="gallery"]', {
on: {
loading: (_fancybox, slide) => {
const div = document.createElement("div");
div.classList.add('f-spinner')
div.innerHTML = 'LOADING...'
slide.el.prepend(div);
slide.spinnerEl = div;
},
},
});
So cool!
This project is fantastic. I bought the license on Tuesday to ensure continuous project development and support.
Thanks a lot!
Describe the bug
I would like to know how it is possible to change the image/html of the spinner.
Reproduction
I tried to do it the way below, but it only changes when the element already exists.
Any idea?
Additional context
No response