From cbda1cc6523412fda6c7e862daf25cd7b9b70054 Mon Sep 17 00:00:00 2001 From: Wahyu Kurniawan Date: Fri, 8 Mar 2024 15:28:23 +0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20style:=20add=20new=20keyframe=20?= =?UTF-8?q?animation=20for=20modal?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/frontend/src/index.css | 40 +++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/packages/frontend/src/index.css b/packages/frontend/src/index.css index 502904a..541fb61 100644 --- a/packages/frontend/src/index.css +++ b/packages/frontend/src/index.css @@ -153,4 +153,44 @@ .focus-ring { @apply focus-visible:ring-[3px] focus-visible:ring-snowball-200 focus-visible:ring-offset-1 focus-visible:ring-offset-snowball-500 focus-visible:outline-none; } + + @keyframes dialog-overlay-show { + from { + opacity: 0; + } + to { + opacity: 1; + } + } + + @keyframes dialog-overlay-hide { + from { + opacity: 1; + } + to { + opacity: 0; + } + } + + @keyframes dialog-content-show { + from { + opacity: 0; + transform: translate(-50%, -50%) scale(0.95); + } + to { + opacity: 1; + transform: translate(-50%, -50%) scale(1); + } + } + + @keyframes dialog-content-hide { + from { + opacity: 1; + transform: translate(-50%, -50%) scale(1); + } + to { + opacity: 0; + transform: translate(-50%, -50%) scale(0.95); + } + } }