Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
intersectionobservercallback.js
let callback = (entries, observer) => {
entries.forEach(entry => {
// Each entry describes an intersection change for one observed
// target element:
// entry.boundingClientRect
// entry.intersectionRatio
// entry.intersectionRect
// entry.isIntersecting
// entry.rootBounds
// entry.target
// entry.time
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment