Justified-Gallery icon indicating copy to clipboard operation
Justified-Gallery copied to clipboard

Custom spinner

Open JonathanVandal opened this issue 6 years ago • 2 comments

It's possible to custom the spinner when we are loading the images ? I'd like to had material spinner

JonathanVandal avatar Jul 06 '17 08:07 JonathanVandal

Yes it is quite easy to customize that part, even if you should branch the code in order to do that

I suggest something light like this: https://codepen.io/mrrocks/pen/EiplA

Unfortunately I am not considering to change it, because, especially for infinite scrolling, the spinner needs to be a little bit short since it is at the end of a page.

Depending on what you are doing, if you have the images' width and height I always suggest waitThumbnailsLoad = false

miromannino avatar Jul 06 '17 09:07 miromannino

Branch the code ? Do you mean that I have to edit your library ?

Yeah I have already waitThumbnailsLoad = false and I have the same material spinner.

I have another problem. I'm doing an ajax call and in the success response I initialize the bootstrap modal with the new pictures. And sometimes the first spinner isn't visible while the first picture row is visible. It's possible to force the first spinner on the modal show event ?

JonathanVandal avatar Jul 06 '17 10:07 JonathanVandal