Masonry layout #38332
Unanswered
git-user-hub
asked this question in
Ideas
Masonry layout
#38332
Replies: 1 comment
-
or just KISS: simple masonry with css only:
with 3 css variables for user to adjust as needed |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Macy Masonry works better for me than the current Bootstrap suggestion.
What about integrating Macy Masonry JS into Bootstrap 6 JS?
This customization might be useful for most cases:
waitForImages: true,
macy_instance.runOnImageLoad(function () { macy_instance.recalculate(true); }, true);
An easy way to set xMargin (any units) and yMargin (no units) might be useful as well.
And columns and breakAt.
I currently use it as follows:
With
masonry
class instead of id, you can have multiple Macy Masonry instances on one page.Thanks!
Beta Was this translation helpful? Give feedback.
All reactions