$(document).ready(function() { $("a[href*='#LayoutGrid4']").click(function(event) { event.preventDefault(); $('html, body').stop().animate({ scrollTop: $('#wb_LayoutGrid4').offset().top-88 }, 600, 'easeOutCirc'); }); });