https://github.com/sambeevors/heightgroup
A small JavaScript helper for matching the heights of grouped elements
https://github.com/sambeevors/heightgroup
Last synced: 2 months ago
JSON representation
A small JavaScript helper for matching the heights of grouped elements
- Host: GitHub
- URL: https://github.com/sambeevors/heightgroup
- Owner: sambeevors
- Created: 2018-03-13T12:30:48.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-14T17:53:07.000Z (over 7 years ago)
- Last Synced: 2025-02-13T22:51:19.596Z (4 months ago)
- Language: JavaScript
- Size: 14.5 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# heightGroup
heightGroup is a simple, lightweight es2015 helper for matching the height of multiple DOM elements.
Usage
---
The fastest way to get started is like so:
```
new HeightGroup('.example').watchElements()
```
The `watchElements` method will automatically update on page resize.You can however set your height group into a variable, and match heights at certain points in your code using the `matchHeights` method.
```
let example = new HeightGroup('.example')setTimeout(() => {
example.matchHeights()
}, 3000)
```