diff --git a/source/js/animation.js b/source/js/animation.js index e79be6f..c641f06 100644 --- a/source/js/animation.js +++ b/source/js/animation.js @@ -52,7 +52,8 @@ // jump to location.hash if (window.location.hash) { setTimeout(() => { - document.querySelector(window.location.hash).scrollIntoView({ behavior: 'smooth' }); + // Use getElementById because querySelector does not support ids that start with numbers + document.getElementById(window.location.hash.substring(1)).scrollIntoView({ behavior: 'smooth' }); }, i * 100); } });