A custom event that fires when a user stops resizing their browser.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
src
test/e2e
.babelrc
.codeclimate.yml
.eslintignore
.eslintrc.js
.gitignore
.npmrc
.travis.yml
CODE_OF_CONDUCT.md
CONTRIBUTING.md
LICENSE.md
README.md
bower.json
package.json
resizeend.jquery.json
rollup.config.js
yarn.lock

README.md

jquery.resizeend

Build Status devDependencies Status Code Climate NPM version npm Greenkeeper badge

A jQuery plugin that allows for window resize-end event handling.

Installation

With yarn

yarn add jquery.resizeend

With npm

npm install jquery.resizeend

In the browser

Reference your local script:

<script src="node_modules/jquery.resizeend/lib/jquery.resizeend.min.js"></script>

Or load the script via jsdelivr:

<script src="https://cdn.jsdelivr.net/npm/jquery.resizeend@latest/lib/jquery.resizeend.min.js"></script>

Usage

$(window).on('resizeend', function(e) {
  // ...
});

Contributing

Fork the repo and clone locally, then run:

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:

yarn run lint # lints js

yarn test     # runs test suite

If all tests pass, create a pull request.

License

This plugin is licensed under the MIT license.