Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Javascript
Posted by: Sandeep Kumar
Added: Mar 13, 2018 10:33 AM
Views: 21
Tags: jquery
  1. function WUscrollToElement(element) {
  2.     jQuery('html, body').animate({
  3.         scrollTop: (jQuery(element).offset().top)
  4.     }, 500, 'swing');
  5. }