From c7524582736ba72ac4a35a5681e286bfd3c73adc Mon Sep 17 00:00:00 2001 From: Akshay Date: Tue, 11 Oct 2022 19:46:43 +0530 Subject: [PATCH 1/2] created an animation , if won then it blinks green --- style.css | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/style.css b/style.css index 4c0c4c9..e6503d5 100644 --- a/style.css +++ b/style.css @@ -165,9 +165,12 @@ button:hover { } .won { - background-color: green; + animation: won 0.7s ease-in-out 2s infinite alternate; +} +@keyframes won { + from{background-color: white;} + to{background-color: rgb(22, 242, 22);} } - #ai_level { margin-bottom: 0.5%; } From 4e0cd83c7c57b7f614a093496ce0900a93d2044d Mon Sep 17 00:00:00 2001 From: Akshay Date: Mon, 14 Nov 2022 09:30:12 +0530 Subject: [PATCH 2/2] animation changed from 0.7s to 0.4s. --- style.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/style.css b/style.css index e6503d5..da2105a 100644 --- a/style.css +++ b/style.css @@ -165,7 +165,7 @@ button:hover { } .won { - animation: won 0.7s ease-in-out 2s infinite alternate; + animation: won 0.4s ease-in-out 2s infinite alternate; } @keyframes won { from{background-color: white;}