From cfe7750abe9190ce8aa9fce35b88fc786eb158aa Mon Sep 17 00:00:00 2001 From: legonzaur Date: Fri, 3 May 2024 00:52:01 +0200 Subject: [PATCH] Fix card animation --- components/CardPreview.vue | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/components/CardPreview.vue b/components/CardPreview.vue index 1d8bf7d..e348a72 100644 --- a/components/CardPreview.vue +++ b/components/CardPreview.vue @@ -39,7 +39,7 @@ const rotation = ref(0) watch( () => props.data, () => { - rotation.value = Math.random() > .5 ? 2 : -2 + rotation.value = Math.random() > .5 ? 2 : -2 }, { immediate: true }) @@ -76,9 +76,7 @@ watch( .card_image { max-height: 250px; - transition: filter .125s cubic-bezier(0.075, 0.82, 0.165, 1); - transition: margin .125s cubic-bezier(0.075, 0.82, 0.165, 1); - transition: transform .125s cubic-bezier(0.075, 0.82, 0.165, 1); + transition: all .125s cubic-bezier(0.075, 0.82, 0.165, 1); margin-top: 15px; margin-bottom: 0px }