Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

intersection-events

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

intersection-events - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

2

package.json
{
"name": "intersection-events",
"moduleName": "IntersectionEvents",
"version": "0.0.2",
"version": "0.0.3",
"description": "Wrapper of IntersectionObserver",

@@ -6,0 +6,0 @@ "main": "dist/intersection-events.es.js",

# intersection-events
Wrapper of IntersectionObserver
```js
import IntersectionEvents from 'intersection-events'
new IntersectionEvents('.js-target', {
onEnter: () => {
// when element enter the window
},
onLeave: () => {
// when element leave the window
}
})
```
```html
<script src="https://unpkg.com/intersection-events"></script>
```
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc