Skip to content

👀 Get notified when a DOM element appear in and out of view.

License

Notifications You must be signed in to change notification settings

mystroken/intersection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Intersection

👀 Get notified when a DOM element appear in and out of view.


Consider using the browser API, Intersection Observer, if you don't care about IE and if you just need a basic support of in / out of viewport notifications.


Installation


Usage

Look at the source files for more information.

Get started
const options = {};
const o = new Intersection(options);
o.observe(document.querySelectorAll('.in-view'));

About

👀 Get notified when a DOM element appear in and out of view.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published