Uncategorized

Page Smooth Scrolling To ID

Sometime we need to use Smooth Scrolling to id function, it will redirect to the exact point where the content is. We can add this functionality through the code snippet… <a class=”scroll” href=”#comments”>Scroll to comments</a> jQuery(document).ready(function($) { $(“.scroll”).click(function(event){ event.preventDefault(); $(‘html,body’).animate({scrollTop:$(this.hash).offset().top}, 500); }); }); For wordpress user can use plugins to smooth scrolling to id. There …

Page Smooth Scrolling To ID Read More »

Scroll to Top