Skip to content

Mason-it v1.0.0 - Initial Release

Choose a tag to compare

@Druhin13 Druhin13 released this 11 May 08:06
· 4 commits to master since this 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-it attribute.
    • JavaScript API for more control: MasonIt.init(), MasonIt.refresh(), MasonIt.destroy().
  • ⚙️ Configurable:
    • Set initial layout delay (mason-delay).
    • Set polling interval for content changes (mason-poll-interval).
  • 👀 Dynamic Content Ready: Includes MutationObserver support 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() and MasonIt.count() utility functions.

Assets:

  • dist.zip: Contains the distributable files from the dist/ 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 the src/ directory for this version.

Getting Started:

Check out the README.md for full installation and usage instructions.