I
I
Islam Ibakaev2017-05-17 03:16:46
css
Islam Ibakaev, 2017-05-17 03:16:46

Why do gallery items overlap on page load?

the gallery (see see our works) is pumped with an isotope of filterability for the sake of it.
However, after loading the page, it appears in a bad shape, but if you resize the window, it is immediately corrected.
How to fix this "unheard of self-permissiveness"?
multi2.surge.sh
ps I will take comments on layout, if any.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Goncharov, 2017-05-17
@devellopah

You need to use this hack with imagesloaded
https://isotope.metafizzy.co/layout.html
At the bottom of this page is the section "imagesLoaded"

E
Egor Zhivagin, 2017-05-17
@Krasnodar_etc

Does the isotope work after loading the page immediately? I fully admit that after the render, but before the images are loaded. To check, you can put console.log() before the isotope and in the onload of the html image. Or set img to a fixed size
I didn’t see any comments on the layout, it’s a regular landing page, just everything) The only thing is that in the mobile version on the first slider there are white indents between slides

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question