jquery.resizeend
Version:
A jQuery plugin that allows for window resize-end event handling.
72 lines (47 loc) • 1.9 kB
Markdown
# jquery.resizeend
[](https://travis-ci.org/nielse63/jquery.resizeend)
[](https://david-dm.org/nielse63/jquery.resizeend?type=dev)
[](https://codeclimate.com/github/nielse63/jquery.resizeend)
[](http://badge.fury.io/js/jquery.resizeend)
[](https://www.npmjs.com/package/jquery.resizeend)
[](https://greenkeeper.io/)
A jQuery plugin that allows for window resize-end event handling.
## Installation
### With `yarn`
```sh
yarn add jquery.resizeend
```
### With `npm`
```sh
npm install jquery.resizeend
```
### In the browser
Reference your local script:
```html
<script src="node_modules/jquery.resizeend/lib/jquery.resizeend.min.js"></script>
```
Or load the script via jsdelivr:
```html
<script src="https://cdn.jsdelivr.net/npm/jquery.resizeend@latest/lib/jquery.resizeend.min.js"></script>
```
## Usage
```js
$(window).on('resizeend', function(e) {
// ...
});
```
## Contributing
Fork the repo and clone locally, then run:
```sh
yarn install
```
This will install the `devDependencies` packages and build the `dist` folder.
Once you've made your desired changes, make sure to write any new tests for
your feature and run the tests:
```sh
yarn run lint # lints js
yarn test # runs test suite
```
If all tests pass, [create a pull request](https://github.com/nielse63/jquery.resizeend/pulls).
## License
This plugin is licensed under the [MIT license](http://opensource.org/licenses/MIT).