Skip to content

Checks if the element is visible on screen and attach on it, actions to let you build some effect like parallax, animation when enter on screen, whatever.

License

Notifications You must be signed in to change notification settings

haoxiuwang/jquery-scrolledintoview

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

jQuery Scrolled Into View

This script checks if the element is visible on screen and attach on it, actions to let you build some effect like parallax, animation when enter on screen, whatever.

Options

  • offset Aditional offset size to the header, in pixels.
  • partial Set if actions starts when the element is totally or partial visible on screen.

How to use?

$('.element').scrolledIntoView({
	onEnter: function(element) {
		// Start the animation when element enter screen
	},
	onLeave: function(element) {
		// Stop the animation when element leave screen
	},
	onVisible: function(element) {
		// Do some action while scrolling the page and visible on screen
	}
});

About

Checks if the element is visible on screen and attach on it, actions to let you build some effect like parallax, animation when enter on screen, whatever.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%