/inView

Javascript library to add callbacks when element scrolled into view.

Primary LanguageHTMLMIT LicenseMIT

inView.js

Small Javascript Plugin to add event listeners when element goes on and off of screen.

Usage:

<script>
	var el = new inView(document.getElementById('inView'));
	el.onInView(function() {
		...
	});
	el.onOutView(function() {
		...
	});
</script>

Demo: