Skip to content
Advertisement

Tag: scroll

How to disable scrolling temporarily?

I’m using the scrollTo jQuery plugin and would like to know if it is somehow possible to temporarily disable scrolling on the window element through Javascript? The reason I’d like to disable scrolling is that when you scroll while scrollTo is animating, it gets really ugly 😉 Of course, I could do a $(“body”).css(“overflow”, “hidden”); and then put it back

How to check if element is visible after scrolling?

I’m loading elements via AJAX. Some of them are only visible if you scroll down the page. Is there any way I can know if an element is now in the visible part of the page? Answer This should do the trick: Simple Utility Function This will allow you to call a utility function that accepts the element you’re looking

Advertisement