desandro / imagesloaded

:camera: JavaScript is all like "You images done yet or what?"
https://imagesloaded.desandro.com
MIT License
8.88k stars 1.15k forks source link

imagesloaded loading gif with php #293

Closed udisklorenz closed 2 years ago

udisklorenz commented 4 years ago

Hello In the code below you can see that I display images from a folder via php on the website. The images are displayed after they have been loaded. This looks weird on the website, because the images might be displayed after one second or after 5 seconds. Now I want to replace this with a loading gif, so the user can see that something is loading. I saw your example with the buttons where you can add and delete pictures. Now the question is, how can I do this without the buttons, so that when the user opens the modal the images are displayed, and if they need to be loaded the loading gif is displayed? Thanks a lot

`

`
udisklorenz commented 4 years ago

here a little explanation for the php segment: the class "imggallery" is for the java library lightgallery and the class "lazy" is for lazyloading. <ul class="ul-li" id="locals"> there you can see that i tried it before with your example "locals" but it doesn't work for me

udisklorenz commented 4 years ago

and here you can find the website where it should work ;) http://riederhslu.bplaced.net/arart/

udisklorenz commented 4 years ago

@desandro have you found something?