heightify
A module for setting the same heights on given element.
Install
$ git clone https://github.com/oyvindhermansen/heightify.git
$ npm install
Usage
// vanilla JS selector // With jQuery selector
Options
The only required key for heightify is element
.
The rest is optional.
- hasImages
- destroyOnSize
Example on how it works with cards
Development
$ npm run dev
This will run on both src/ and examples/
Build:
For production:
$ npm run build
Tests
$ npm test
$ npm run test:watch
Contribute
If you want to contribute, feel free to make a pull request or file an issue:) Feature requests are also welcome!