user75472
user75472

Reputation: 1295

How to use jquery for scrolling horizontally

I am new to use jquery. I need to scroll to the place where the menu indicates as in this site http://www.newworkmag.com/issue1.html. If I am not mistaken then I can use scrollTo. But I could not find how to use this. Hope to get answer.

Thank you.

Upvotes: 0

Views: 299

Answers (3)

Jose Basilio
Jose Basilio

Reputation: 51538

This can be achieved using the jQuery scrollTo plug-in which allows you to scroll the entire window as in your example.

EDIT: Here's a similar stackoverflow question

Upvotes: 2

Haim Evgi
Haim Evgi

Reputation: 125604

if the purpose is : Scroll Follow is a simple jQuery plugin that enables a DOM object to follow the page as the user scrolls. the link is :

http://kitchen.net-perspective.com/open-source/scroll-follow/

or

http://code.google.com/p/jquery-scroll-follow/

Upvotes: 0

Artem Barger
Artem Barger

Reputation: 41232

You can use scrollLeft( val) for that. Here you have nice documentation.

PS. Also there is no actual need to use jQuery for that you can use scrollBy

window.scrollBy( x, y);

Upvotes: 1

Related Questions