I’m using jQuery to give my scrollTop a animation, but it says “Unexpected end of input”.
I really don’t know to put my values correctly inside the animate function, if someone could help me, I would appreciate that.
// Onclick function for the side navigation
function dotNavigation(element) {
var id = element.id.substr(3);
var s = ($(window).height()-96) * (id-1);
$("html, body").animate({ scrollTop: $s + "300" + "px" });