javascript - Slow down scroll to top event by jQuery animate -


When some anchor is clicked, I want to go to the top of my page.

  $ ('a [href = # top]').  

Click here function () {$ ('body'). Chetan ({scrollTop: 0}, 50);});

I want to slow it down.

  $ ('A [href = # top]'). Click (function () {$ ('html, body'). Animate ({scrollTop: 0}, 'slow');});  

Maybe?


Comments

Popular posts from this blog

objective c - iPhone and it's wireless area -

unix - Listing all shared memory segments used by a process on AIX5.3+ -

.net - Self Tracking Entities (STE)'s and partial updates with EF4 and mVC2 -