Javascript: move the "view point" of the browser

Posted by ArchJ on Stack Overflow See other posts from Stack Overflow or by ArchJ
Published on 2012-06-30T09:01:11Z Indexed on 2012/06/30 9:15 UTC
Read the original article Hit count: 143

Filed under:
|
|
|

I have a page with many out-of-bounds contents and since I set body{overflow:hidden}, they are not outside the viewport. So I want to attach a function to a button which would move the PoV of the browser so that the out-of-bounds contents would come into the viewport.

What I can think of now is to set body{position:relative} and use jQuery to animate() the body instead. But in terms of performance, is there a better way to achieve that?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about html