Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jeremenichelli/resizeend
Script that creates a custom event to check when resize has ended with no dependencies
https://github.com/jeremenichelli/resizeend
Last synced: 16 days ago
JSON representation
Script that creates a custom event to check when resize has ended with no dependencies
- Host: GitHub
- URL: https://github.com/jeremenichelli/resizeend
- Owner: jeremenichelli
- License: mit
- Created: 2015-10-12T21:51:22.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-10-31T18:59:31.000Z (about 9 years ago)
- Last Synced: 2024-10-11T13:34:41.311Z (about 1 month ago)
- Language: JavaScript
- Size: 172 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# resizeend
Script that creates a custom event to check when resize has ended with no dependencies.
## Use
Include the minified version file in your project.
```html
```
### Listen
```js
window.addEventListener('resizeend', function() {
alert('You are not resizing the window anymore!');
});
```### delay
The scripts takes some time to check if the user has stopped resizing the window. The default is `100` milliseconds but you can change that calling `resizeend.delay(250)`.
## Browser support
This script works in all modern browsers (last version of Firefox, Chrome, Safari, Edge) and Internet Explorer 9 and 10.
> For Internet Explorer 9 and browsers that don't support `requestAnimationFrame` you have to use the legacy version.
## Size
- 1.18KB uncompressed
- 361 bytes minified
- 223 bytes minified and gzipped