开发者

How to Horizontally scroll a webpage?

开发者 https://www.devze.com 2023-02-19 07:57 出处:网络
I want to develop a webpage that moves towards the left direction whenever the user scrolls down the mousewheel. Generally all websites are vertical scrolling. But this one should scroll horizontally.

I want to develop a webpage that moves towards the left direction whenever the user scrolls down the mousewheel. Generally all websites are vertical scrolling. But this one should scroll horizontally.

Example code:

<body>
<div style="width:10000px; height:40开发者_开发技巧0px; top:0; left:0;">
//here goes the content.
</div>
</body>

My objective is to scroll the DIV horizontally on mouse-wheel scroll, using jQuery or any other Javascript tool.


Horizontal page scrolling using Javascript

0

精彩评论

暂无评论...
验证码 换一张
取 消