From 3a3651a99960a11e5efbaee59eb78fb444edf543 Mon Sep 17 00:00:00 2001 From: zjedi Date: Wed, 22 Mar 2023 00:55:49 +0100 Subject: [PATCH] shorter 0.2s scroll-to animation, helps to reduce frustration from being prevented from scrolling --- assets/js/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/index.js b/assets/js/index.js index b78d9aa..cf9813c 100644 --- a/assets/js/index.js +++ b/assets/js/index.js @@ -53,7 +53,7 @@ var $sitehead = $("#site-head"); $(".fn-item").click(function () { var postId = $(this).data("post-id"); var s = $("#" + postId); - srcTo(s, 400); + srcTo(s, 200); }); });