Repository navigation
Mason-it v1.0.0 - Initial Release
🎉 Mason-it v1.0.0 - The First Official Release! 🎉
This marks the initial public release of mason-it, a lightweight, dependency-free JavaScript library designed to transform your standard CSS Grid layouts into beautiful, responsive masonry arrangements with minimal effort.
What is Mason-it?
Tired of wrestling with complex masonry libraries that ignore your CSS Grid? mason-it respects your existing grid setup (grid-template-columns, gap) and simply adds the masonry magic on top.
Key Features in v1.0.0:
- 🧱 True CSS Grid Based: Works with your existing CSS Grid, doesn't fight it.
- 🚀 Zero Dependencies: Lightweight and won't bloat your project.
- ✨ Simple API:
- Automatic initialization with the
data-mason-itattribute. - JavaScript API for more control:
MasonIt.init(),MasonIt.refresh(),MasonIt.destroy().
- Automatic initialization with the
- ⚙️ Configurable:
- Set initial layout delay (
mason-delay). - Set polling interval for content changes (
mason-poll-interval).
- Set initial layout delay (
- 👀 Dynamic Content Ready: Includes
MutationObserversupport to automatically update the layout when child elements are added or removed. - 📏 Responsive: Handles window resize events gracefully to recalculate and adjust the layout.
- 🐞 Debug Mode:
MasonIt.debug(true)for console insights. - ℹ️ Version & Count:
MasonIt.version()andMasonIt.count()utility functions.
Assets:
dist.zip: Contains the distributable files from thedist/directory:mason-it.min.js(minified UMD version)mason-it.js(unminified UMD version)mason-it.esm.js(ES module version)
src.zip: Contains the full source code from thesrc/directory for this version.
Getting Started:
Check out the README.md for full installation and usage instructions.