1.0.7 • Published 5 years ago

js-match-height v1.0.7

Weekly downloads
87
License
ISC
Repository
github
Last release
5 years ago

js-match-height

Dependency-free vanilla js plugin to match element heights, in a tiny file (2kb).

Getting Started

npm i js-match-height --save

Use

Import the library and simply instatiate with your elements, no options required. MatchHeight will correct heights if needed on window resize, using a debounce method to improve performance.

import { MatchHeight } from 'js-match-height';

Pass your elements.

const matchHeight = new MatchHeight('ul.list-items  li');

The timeout for the debounce method is defaulted at 250. You can set your time if needed.

const matchHeight = new MatchHeight('ul.list-items  li', { timeout:400 });

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

  • jquery match height
1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago