Skip to content

Commit

Permalink
Improve FaqDisclosure animations
Browse files Browse the repository at this point in the history
  • Loading branch information
Iapetus-11 committed Nov 28, 2024
1 parent 88f67d9 commit e52be71
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions src/views/about/FaqDisclosure.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,15 @@
</span>
</button>

<Transition
enter-active-class="transition-all ease-in duration-400"
enter-from-class="max-h-[0] !py-0"
enter-to-class="max-h-[5rem] !py-5"
leave-active-class="transition-all ease-out duration-400"
leave-from-class="max-h-[5rem] !py-5"
leave-to-class="max-h-[0] !py-0"
mode="out-in"
<div
class="grid grid-rows-[0fr] transition-[grid-template-rows] duration-[400ms] ease-out bg-violet-900"
:class="{ 'grid-rows-[1fr]': open }"
>
<div v-if="open" class="w-full bg-violet-900 bg-opacity-80 p-5 text-lg text-gray-50">
<slot />
<div class="w-full overflow-hidden bg-opacity-80 text-lg text-gray-50">
<div class="p-5">
<slot />
</div>
</div>
</Transition>
</div>
</div>
</template>

0 comments on commit e52be71

Please sign in to comment.