Skip to content Skip to sidebar Skip to footer

JQuery: How Do I Scroll The Body Without Showing The Scroll Bar?

I'm trying to hide the scroll bar of the document (in some browsers it's the body element, in others it's the html element) by using overflow:hidden;. Then i'm using jQuery.animate

Solution 1:

Try make <body> overflow:hidden and animate the margin-top property, note the margin-top should be negative if you want a positive scrollTop.

On webkit you could use ::-webkit-scrollbar: { display: none; } to hide the scrollbar with scroll features enabled.


Post a Comment for "JQuery: How Do I Scroll The Body Without Showing The Scroll Bar?"