Skip to content

Commit

Permalink
Fix mask display for firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikolai Dorofeev committed Jul 30, 2024
1 parent cb01c9b commit bc6b532
Showing 1 changed file with 6 additions and 16 deletions.
22 changes: 6 additions & 16 deletions packages/nuxt-design-system/components/d/Mask.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,26 +52,16 @@ function getAsset(mask: MaskType) {
</script>

<template>
<div>
<Transition name="mask" mode="out-in">
<img
v-if="mask === 'spider'"
:src="getAsset('spider')"
alt="Spider mask"
/>
<img v-else-if="mask === 'owl'" :src="getAsset('owl')" alt="Owl mask" />
<img
v-else-if="mask === 'wolf'"
:src="getAsset('wolf')"
alt="Wolf mask"
/>
</Transition>
</div>
<Transition name="mask" mode="out-in">
<img v-if="mask === 'spider'" :src="getAsset('spider')" alt="Spider mask" />
<img v-else-if="mask === 'owl'" :src="getAsset('owl')" alt="Owl mask" />
<img v-else-if="mask === 'wolf'" :src="getAsset('wolf')" alt="Wolf mask" />
</Transition>
</template>

<style scoped>
img {
@apply w-full h-full;
@apply h-full;
}
.mask-enter-active,
Expand Down

0 comments on commit bc6b532

Please sign in to comment.