Hequalizer makes it effortless to keep DOM elements visually aligned by computing the tallest element in a group and exposing that value as a CSS custom property. Drop it into any layout — card grids, carousels, product listings — and control height equalization purely through CSS, with no layout hacks required.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/soyleninjs/hequalizer/llms.txt
Use this file to discover all available pages before exploring further.
Installation
Add Hequalizer via npm, CDN, or direct download in under a minute.
Quickstart
Equalize your first group of elements with just three lines of code.
API Reference
Full constructor, instance methods, options, events, and state classes.
Examples & Guides
Real-world patterns: responsive grids, carousels, multiple groups, and more.
Why Hequalizer?
Most height-equalization approaches rely on JavaScript to directly setheight or min-height on elements. Hequalizer instead writes a single CSS custom property — --height by default — and lets your stylesheet decide how to use it. This keeps layout logic in CSS where it belongs and makes responsive overrides trivial.
Zero dependencies
Pure vanilla JavaScript — no jQuery, no utility libraries, no build step required.
Responsive by design
Configure different column counts and CSS variables per breakpoint with the built-in
responsive option.Automatic recalculation
Reacts to window resize (with optional debounce) and DOM content changes via
MutationObserver.Instance registry
Retrieve any live instance by handle with
Hequalizer.getInstance(handle) from anywhere in your code.Quick look
index.html
app.js
styles.css
Create an instance
Call
new Hequalizer('your-handle') after the DOM is ready — Hequalizer finds the elements automatically.Apply the CSS variable
Use
var(--height) (or your custom variable name) in CSS to set min-height, height, or any property.