Skip to content
Keeps an element within the viewport
JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
examples
scripts
README

README

jQuery keepInWindow ist a jQuery plugin which allows you to keep some elements always in the viewport.

Usage is as simple as: $(".elements").keepinwindow();

If the cursor is over the element and the element has a greater height than the window it won't move.

See the examples folder for examples ;)

Demo: http://sopamo.github.com/jQuery-KeepInWindow/
Download: https://github.com/Sopamo/jQuery-KeepInWindow/zipball/master

Blog entry: http://4ppletree.me/jquery-plugins/jquery-keepinwindow/ (german)
Something went wrong with that request. Please try again.