Jayesh Patel
Filed under - JavaScript, jQuery
No Comments so far. Add yours now

Load:

$(window).load(function () { topInViewport($("#mydivname")) });

Resize:

$(window).resize(function () { topInViewport($("#mydivname")) });

Scroll

$(window).scroll(function () { topInViewport($("#mydivname")) });

Or bind to them all usingĀ on:

$(window).on("load resize scroll",function(e){ topInViewport($("#mydivname")) });

Leave your comment

You must be logged in to post a comment.

Share IT © 2018. All rights reserved.