How to set target for scrollTop and scrollLeft
Hello. I am able to get the page to scroll using something like this
- $("html:not(:animated),body:not(:animated)").animate({ scrollTop: rw_X, scrollLeft: rw_Y},2000);
I was hoping to be able to target the animate element by using something like this
- document.body
Is this not possible?
What are some targets that allow you to scroll the page (the position of the scroll bars)?
Thanks
FA