From 99aed03a36e3dd8ec6389ef84efe4b35bdaeefdf Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Wed, 30 Aug 2023 03:03:10 -0400 Subject: [PATCH] smooth scroll --- views/honkpage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/honkpage.js b/views/honkpage.js index 99ce903..3f29067 100644 --- a/views/honkpage.js +++ b/views/honkpage.js @@ -82,7 +82,7 @@ var lehonkbutton = document.getElementById("honkingtime") function oldestnewest(btn) { var els = document.getElementsByClassName("glow") if (els.length) { - els[els.length-1].scrollIntoView() + els[els.length-1].scrollIntoView({ behavior: "smooth" }) } } function removeglow() {