cpatik/within-viewport — Issue #1: Ability to test if *any* part of element is visible
Author: chriscoyier
Created: 2011-11-21 23:31:34+00:00
State: open

This might already be a setting/option but I couldn't find it. Let's say you have a large area that is *bigger* than the viewport. As of now it will always return false as it's impossible that it's *entirely* within the viewport. If it's not already an option, I think that would be mega-useful. Use case: you have a large area someone is scrolling down through and you want to apply a class to it whenever any part of it is visible so you can, for instance, fixed position a bar.