Skip to content

Instantly share code, notes, and snippets.

@sagalbot
Created February 8, 2023 01:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sagalbot/a3f82ea7d720e529fe945b400507891b to your computer and use it in GitHub Desktop.
Save sagalbot/a3f82ea7d720e529fe945b400507891b to your computer and use it in GitHub Desktop.
<template>
<Transition
v-bind="$attrs"
enter-active-class="ease-out duration-300"
enter-class="opacity-0"
enter-to-class="opacity-100"
leave-active-class="ease-in duration-200"
leave-class="opacity-100"
leave-to-class="opacity-0"
v-on="$listeners"
>
<slot></slot>
</Transition>
</template>
<template>
<FadeTransition>
<h1>Hello there</h1>
</FadeTransition>
</template>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment