An open API service indexing awesome lists of open source software.

https://github.com/multum/better-size

Plug-in for setting the same block height (maximum). Demo: https://codepen.io/JoyZi/pen/zdKQYw
https://github.com/multum/better-size

Last synced: 8 months ago
JSON representation

Plug-in for setting the same block height (maximum). Demo: https://codepen.io/JoyZi/pen/zdKQYw

Awesome Lists containing this project

README

          

# BetterSize

Плагин для установки одинаковой высоты блоков(по максимальной). Demo: https://codepen.io/JoyZi/pen/zdKQYw

### Settings

Option | Type | Default
------ | ---- | -------
elements | string | $(this).find(">div")
childClass | string | "content"
afterChange | function | null

### Methods

Method | Argument | Description
------ | -------- | -------------------------------------------
resize | | Recalculation of height of elements
```javascript
$(".current_items").betterSize("resize")
```
### [Demo](https://codepen.io/JoyZi/pen/zdKQYw)

### Инициализация после подключения самого плагина

```javascript
$( document ).ready( function () {
$(".current_items").betterSize({
elements: ".item",
childClass: "child",
afterChange: function (el, height) {
console.log(el, height);
}
});
});
```