From 68ab27803111a97c93fe0c989ec435402f3b2a35 Mon Sep 17 00:00:00 2001 From: Elis Eriksson Date: Mon, 6 Jul 2026 17:40:22 +0200 Subject: add a Web 14 rating and move bass picture to this repo --- assets/js/transitions.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'assets/js') diff --git a/assets/js/transitions.js b/assets/js/transitions.js index 0ffdacd..e6d7c85 100644 --- a/assets/js/transitions.js +++ b/assets/js/transitions.js @@ -7,14 +7,14 @@ function transitionOut(callback) { document.body.style.filter = "url(#transition)" const src = new Number(displacement.getAttribute("scale")); noise.setAttribute("seed",Math.random() * 1000) - if (src < 100) { - displacement.setAttribute("scale", src + 20 + src); + if (src < 1000) { + displacement.setAttribute("scale", src + 10 + src); nextFunc = () => transitionOut(callback) requestAnimationFrame(nextFunc) } else { setTimeout(() =>{ document.body.style.filter = "" - },1000); + },10000); callback() } } @@ -51,4 +51,4 @@ if (noise && displacement) { }) } else { console.log("Can't do transitions!!") -} \ No newline at end of file +} -- cgit v1.3-7-ge9ab