0

image I'm trying to achieve the layout in the image with dynamic data using the unsplash API. While I understand how this can be done if the data were static, I was wondering if there was a way to achieve it with dynamic data ? I'm using vue (if necessary) but I'm really after the css solution to this

Paulie_D
  • 107,962
  • 13
  • 142
  • 161
RogueCode
  • 1
  • 3
  • With a bit of Google I found this: https://css-tricks.com/piecing-together-approaches-for-a-css-masonry-layout/. You can't do it natively in CSS. If you want a Vue solution, I found this in Google: https://www.npmjs.com/package/vue-masonry – captainskippah Jan 26 '22 at 16:07
  • I don't know if I get your problem but you can set your data after initliaze? https://masonry.desandro.com/methods.html#jquery-fn-data-masonry – Wimanicesir Jan 26 '22 at 16:09
  • I had the same issue for the same type of build, the unsplash API :D. I ended up using react-masonry, an npm module to suit myself – Aadhit Shanmugam Jan 26 '22 at 16:26

0 Answers0