I'm having two problems with my code:

1. not really a problem, but how do I make jumping to a certain place on the page using window.scroll more smooth and not just a direct jump?

2. also, can I do a scroll by percents? I have a horizontally scrolling website that has a picture with a width of 300%. Obviously, anyone with a different sized monitor than I do will jump to the wrong place if I use pixels.

Help, please