Hi you all!
I am building my portfolio page but I have a problem. When I click on a navbar link, it scrolls down and overlaps the title of each section. I tried the following workaround
`$(document).ready(function(){
$('a[href^="#"]').click(function(e) {
e.preventDefault();
var target = this.hash, $target = $(target);
$('html, body').stop().animate({
'scrollTop': $target.offset().top-80
}, 300, 'swing', function() {
window.location.hash = target;
});
});
});`
This works but it is not okay for me, since when I use the navigation bar, active section is not showing properly.
Does anyone know a different solution in order to solve my problem?
You can see my code here
Thank you in advance