5.0.5 • Published 9 years ago

heightify v5.0.5

Weekly downloads
145
License
MIT
Repository
github
Last release
9 years ago

heightify

A module for setting the same heights on given element.

Build Status

Install

$ git clone https://github.com/oyvindhermansen/heightify.git
$ npm install

Usage

import heightify from 'heightify'

// vanilla JS selector
heightify({
  element: document.querySelectorAll('div'),
  hasImages: true, // uses imagesLoaded
  destroyOnSize: 500
})

// With jQuery selector
heightify({
  element: $('div'),
})

Options

The only required key for heightify is element. The rest is optional.

  • hasImages
  • destroyOnSize

Example on how it works with cards

alt tag

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!

5.0.5

9 years ago

5.0.4

9 years ago

5.0.3

9 years ago

5.0.2

9 years ago

5.0.1

9 years ago

5.0.0

9 years ago

4.0.3

9 years ago

4.0.2

9 years ago

4.0.1

9 years ago

4.0.0

9 years ago

3.0.2

9 years ago

3.0.1

9 years ago

3.0.0

10 years ago

2.0.5

10 years ago

2.0.4

10 years ago

2.0.3

10 years ago

2.0.1

10 years ago

2.0.0

10 years ago

1.0.9

10 years ago

1.0.8

10 years ago

1.0.7

10 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago