diff --git a/client/src/styles/partials/animations.scss b/client/src/styles/partials/animations.scss index 080a09ee..e4597d42 100644 --- a/client/src/styles/partials/animations.scss +++ b/client/src/styles/partials/animations.scss @@ -69,6 +69,25 @@ } } +@keyframes bd-modal-in { + 0% { transform: scale(0.8); opacity: 0; } + 90% { transform: scale(1.01); opacity: 1; } + 100% { transform: scale(1); opacity: 1; } +} +@keyframes bd-modal-out { + 0% { transform: scale(1); opacity: 1; } + 10% { transform: scale(1.01); opacity: 1; } + 90% { opacity: 0; } + 100% { transform: scale(0.8); opacity: 0; } +} + +@keyframes bd-backdrop-in { + 0% { opacity: 0; } +} +@keyframes bd-backdrop-out { + 100% { opacity: 0; } +} + @keyframes bd-warn-shake { 10%, 90% { transform: translate3d(-4px, -4px, 0); @@ -85,4 +104,4 @@ 40%, 60% { transform: translate3d(4px, -4px, 0); } -} \ No newline at end of file +} diff --git a/client/src/styles/partials/generic/modals.scss b/client/src/styles/partials/generic/modals.scss index fdc2abae..83f35acb 100644 --- a/client/src/styles/partials/generic/modals.scss +++ b/client/src/styles/partials/generic/modals.scss @@ -32,6 +32,11 @@ pointer-events: none; z-index: 9001; justify-content: center; + animation: bd-modal-in 0.22s ease; + + &.bd-modal-out { + animation: bd-modal-out 0.22s ease; + } } .bd-modal .bd-modal-inner { diff --git a/client/src/ui/components/bd/PluginSettingsModal.vue b/client/src/ui/components/bd/PluginSettingsModal.vue index b2a319cd..e65d11da 100644 --- a/client/src/ui/components/bd/PluginSettingsModal.vue +++ b/client/src/ui/components/bd/PluginSettingsModal.vue @@ -10,8 +10,8 @@