Irregular gallery in react [closed]

流过昼夜 提交于 2021-01-20 13:58:17

问题


I have this layout of gallery I also have array of images:[image1, image2, image3 etc] The number of images is not static. It can be 20, 30 or any other number. I'm trying to map my array and render those images, the problem is, how to make them look like on the screen, so every few, one is bigger and all of them lay next to each other without empty spaces. Also it needs to be responsive until 768 px, so other component will be displayed. Do you guys have any idea how to do it? Thank you in advance!

来源:https://stackoverflow.com/questions/65673065/irregular-gallery-in-react

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!