Lianaevans (Talk | contribs) m |
m |
||
Line 165: | Line 165: | ||
function toInteractive() { | function toInteractive() { | ||
var startOfInteractive = (document.getElementById("home-welcome").offsetHeight) + (document.getElementsByClassName("navbar")[0].offsetHeight); | var startOfInteractive = (document.getElementById("home-welcome").offsetHeight) + (document.getElementsByClassName("navbar")[0].offsetHeight); | ||
− | window.scrollTo(0, startOfInteractive); | + | //window.scrollTo(0, startOfInteractive); |
+ | windows.scroll({top: startofInteractive, left: 0, behaviour: smooth}); | ||
} | } |
Revision as of 23:28, 14 October 2020