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 }