I have the following problem:
$('.gotoservices').click(function(){
$('html,body').scrollTo($("#services"),1000);
window.location.hash = "services";
return false;
});
This code works but for some reason the page flashes before the scrollTo
.
If I remove the window.location.hash
line the return false;
works and the page doesn't flash/flicker.
I have tried e.preventDefault
- doesn't work
I'm struggling to find any work around.
Cheers