JavaScript
15
Вклад в тег
<div id="gallery">
<img src="1.jpg" alt>
<img src="2.jpg" alt>
<img src="3.jpg" alt>
…
</div>
div#gallery {
display: -ms-flexbox;
-ms-flex-direction: column;
-ms-flex-wrap: wrap;
display: flex;
flex-direction: column;
flex-wrap: wrap;
height: 100vw;
font-size: 0;
}
div#gallery img {
width: 33.3%;
transition: .8s opacity;
}
url: (userId) ? `/users/${userId}` : '/users',