Skip to content
/ inView Public

Simple jQuery plugin to check if an object is in the viewport.

License

Notifications You must be signed in to change notification settings

igloude/inView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

.inView() is a simple jQuery plugin to determine if an element is in the viewport.

Example:

$(document).scroll(function() {
	if ( $('#obj').inView() === false )	{
		// code for when #obj is NOT in view...
	} else if ( $('#obj').inView() === true) {
		// code for when #obj IS in view...
	}
});

About

Simple jQuery plugin to check if an object is in the viewport.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published