hongaar / unveil2

:mount_fuji: A very lightweight jQuery plugin to lazy load images
http://nabble.github.io/unveil2
38 stars 11 forks source link

width/height markup attributes #14

Closed BeatLaG closed 8 years ago

BeatLaG commented 8 years ago

I´m wondering about the best method to add a preloader indicator for each image. I though that adding a width & height for each element would be enough, but it seems that even if I add the sizes the images are scaled somehow from 0 to width (if you add css transforms you can check this better).

Then, which should be the best method to preserve the layout sizes before unveil images? Could you please suggest a good method to add a preloader indicator vertically/horizontally centered within the item area?

Thanks!

hongaar commented 8 years ago

I don't know exactly what you mean. Something like this? http://jsfiddle.net/hongaar/bpzfgudm/3/

BeatLaG commented 8 years ago

I didn´t realize about the loading class. That´s perfect, otherwise and due to the way I´m loading the contents (css transitions), I was not able to add a background loader.

Thanks Joram!