From 56165392aa9e2e90dd08893f7bf458aa59f0bf88 Mon Sep 17 00:00:00 2001 From: Siddharth Jain Date: Tue, 13 Feb 2024 12:21:28 +0530 Subject: [PATCH] added transitions --- script.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/script.js b/script.js index 35f5409..67c74a7 100644 --- a/script.js +++ b/script.js @@ -19,6 +19,13 @@ search.addEventListener('click', () => { func404(); }, 1500); } + else if (container.style.height == '400px') { + container.classList.add('exit404'); + setTimeout(() => { + container.classList.remove('exit404'); + func404(); + }, 1500); + } else func404(); return;