From 62c72c97877d2351df2ee66bb2c06bc6adf6b49f Mon Sep 17 00:00:00 2001 From: Oliver Ni Date: Mon, 6 Nov 2023 20:53:25 -0800 Subject: [PATCH] make increments finer --- templates/404.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/404.html b/templates/404.html index 1633011..bbb900e 100644 --- a/templates/404.html +++ b/templates/404.html @@ -16,14 +16,14 @@ function normalizeOffset(xOffset, yOffset) { const length = Math.sqrt(xOffset ** 2 + yOffset ** 2); - const effLength = Math.min(length / 200, 1) + const effLength = Math.min(length / 400, 0.5) return [xOffset / length * effLength, yOffset / length * effLength]; } function layerShadow(xOffset, yOffset) { - // Repeat 10 times, with increasing offset and color - return [...Array(10).keys()].map((i) => + // Repeat 20 times, with increasing offset and color + return [...Array(20).keys()].map((i) => `${xOffset * i}px ${yOffset * i}px ${shadowColor}` ).join(", "); }