I am currently using jQuery’s .scrollTop which works perfectly for moving the user back to the top of the page. And since I really like the effect, I would like to make it possible to scroll to some asigned div or anchor point.
Is this possible? If yes, how can I do this? Can someone give me an example?
I want also to retain the scrollTop function itself.
I already checked Stackflow, but or this is not possible, or I overlooked a similar question (in that case I am sorry for posting a new question).
Here is a link to scrollTop: http://api.jquery.com/scrollTop/
Thank you in advance.
A simple jQuery function can achieve this:
JSFiddle example: http://jsfiddle.net/cMxXM/4/