in-view
Advanced tools
Comparing version 0.3.0 to 0.3.1
/*! | ||
* in-view 0.3.0 - Get notified when a DOM element enters or exits the viewport. | ||
* in-view 0.3.1 - Get notified when a DOM element enters or exits the viewport. | ||
* Copyright (c) 2016 Cam Wiegert <cam@camwiegert.com> - https://camwiegert.github.io/in-view | ||
@@ -4,0 +4,0 @@ * License: MIT |
{ | ||
"name": "in-view", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "Get notified when a DOM element enters or exits the viewport.", | ||
@@ -5,0 +5,0 @@ "main": "dist/in-view.min.js", |
@@ -15,3 +15,3 @@ # in-view.js :eyes: | ||
Either download the [latest release](https://raw.githubusercontent.com/camwiegert/in-view/master/dist/in-view.min.js) and include it in your markup or install with [npm](http://npmjs.com/package/in-view): | ||
Either download the [latest release](https://unpkg.com/in-view/dist/in-view.min.js) and include it in your markup or install with [npm](http://npmjs.com/package/in-view): | ||
@@ -43,3 +43,3 @@ ```sh | ||
### inView(\<selector>).on(\<event>, \<handler>) | ||
> Register a handler to the elements selected by `selector` for `event`. The only events the inView emits are `'enter'` and `'exit'`. | ||
> Register a handler to the elements selected by `selector` for `event`. The only events in-view emits are `'enter'` and `'exit'`. | ||
@@ -46,0 +46,0 @@ > ```js |
77210