Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pocesar/angular-equalizer
Equalize the height of a set of random elements, without necessarily having a common parent, container, etc.
https://github.com/pocesar/angular-equalizer
Last synced: 17 days ago
JSON representation
Equalize the height of a set of random elements, without necessarily having a common parent, container, etc.
- Host: GitHub
- URL: https://github.com/pocesar/angular-equalizer
- Owner: pocesar
- License: mit
- Created: 2014-05-19T18:01:05.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-09-08T03:47:43.000Z (about 8 years ago)
- Last Synced: 2024-10-18T06:28:05.480Z (27 days ago)
- Language: TypeScript
- Homepage:
- Size: 13.7 KB
- Stars: 11
- Watchers: 3
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Angular Equalizer
=================Equalize the height of a set of random elements, without necessarily having a common parent, container, etc.
You can add and remove items on demand using the `EqualizerState` service.
### Usage
Add it to your dependencies
```js
angular.module('yourapp', ['ngEqualizer']);
```Use it in your directive
```js
'));
angular.module('yourapp').directive('yourDirective', ['EqualizerState', function(EqualizerState){
return {
link: function(scope, el, attr){
EqualizerState.add('yourDirective', el);
EqualizerState.add('yourDirective', angular.element('
}
};
}]);
```Or use it directly in your elements
```html
```Elements must have an initial height and must not be hidden (their height is set to 0)
### Dependencies
Needs jQuery and Lodash. Also, uses `requestAnimationFrame`, use a polyfill if you must
### License
MIT