Answer the question
In order to leave comments, you need to log in
Is there a js script to generate a grid of photos like in the "Memories" section in iOS 10?
Please tell me a suitable script or formula by which the grid is formed in iOS
Some features:
1. The last row at the bottom should be one line (so masonry or isotope are not suitable)
As usual in masonry or isotope:
|__|--| |_____|
|__|
|__|__|__|_____|
Answer the question
In order to leave comments, you need to log in
object-fit:cover + fixed layout for Freewall
In general, everything depends on the user case. Offhand, I did not find a good library solution for such a task, so I would file a dozen fixed layouts for Freewall, for 3, 4, 5, 6, ... photos. Then vertically expose them sequentially, randomly selected.
But the algorithm for selecting the last 2-3 layouts, for good, will not be so simple.
If the details are interesting, I can expand the topic.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question