E
E
Evgeny Pyatkov2020-08-08 19:32:12
React
Evgeny Pyatkov, 2020-08-08 19:32:12

How to make preloaders for images with unknown sizes?

There is an image gallery in which the size of the images changes dynamically, depending on the width of the screen.
Both the size of the images themselves (width, height) and the number of columns (from 1 to 5)

change. Five columns:
Ik4F6kg.png
Four columns:
lYZolq5.png
Two columns:
qUuvF5x.png

Question: how to install a preloader for each image that would adjust to the size of each image?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question