Lucas_Santos
Lucas_Santos

Reputation: 4740

Jquery animate scroll in diagonal

How can I put a diagonal scroll in my page via JQuery ?

Example, I hid the scroll bar and if my user click in some link, my page has to scroll in diagonal until some part of my page (is possible?)

this is my jquery code, but I know that just gone to the bottom of my page.

.animate({ scrollTop: 350}, 500);

Upvotes: 1

Views: 1542

Answers (1)

Dmitry Pashkevich
Dmitry Pashkevich

Reputation: 13526

You can combine vertical and horizontal scrolling to make diagonal scrolling:

.animate({scrollTop: 350, scrollLeft: 350}, 500);

Upvotes: 1

Related Questions