Check If Element Is Fully Visible In Overflow Scrolling Div
I've created a container with overflow scroll for a list of elements, when click on an element, it would then triggers an event, I'm wondering how can I check if the element is ful
Solution 1:
There you go: http://jsfiddle.net/hywnc/17/
I am using the scrollTo plugin for the scrolling/animation; and to find the right slide i am seeking for the first one whose offset is greater than 10; and then i assume that the previous one is the target.
if ($this.offset().left >= 10) {
// Other logicreturnfalse// Return false to stop the jQuery each method
}
Good luck
Post a Comment for "Check If Element Is Fully Visible In Overflow Scrolling Div"