From 5b150180a2e39948c5c372f4cde029293ed2cb46 Mon Sep 17 00:00:00 2001 From: Jack Date: Fri, 11 Sep 2020 14:00:42 +0100 Subject: [PATCH] smoothing out the blur --- public/js/script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/js/script.js b/public/js/script.js index 1def51c97..feae2fa9f 100644 --- a/public/js/script.js +++ b/public/js/script.js @@ -3735,7 +3735,7 @@ let outOfFocusTimeout; $("#wordsInput").on("focus", (event) => { if (!resultVisible) { - $("#words").removeClass("blurred"); + $("#words").css("transition","none").removeClass("blurred"); $(".outOfFocusWarning").addClass('hidden'); clearTimeout(outOfFocusTimeout); } @@ -3745,7 +3745,7 @@ $("#wordsInput").on("focus", (event) => { $("#wordsInput").on("focusout", (event) => { if (!resultVisible) { outOfFocusTimeout = setTimeout(() => { - $("#words").addClass('blurred'); + $("#words").css("transition","0.25s").addClass('blurred'); $(".outOfFocusWarning").removeClass('hidden'); }, 1000) }