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

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -