Socket
Socket
Sign inDemoInstall

in-view

Package Overview
Dependencies
1
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.3.0 to 0.3.1

2

dist/in-view.min.js
/*!
* 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc