Animation Component
A wrapper component around Vue's <Transition> that provides multiple pre-defined animation effects for entering and leaving elements.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
effect | String | "page" | The animation effect to apply (see list below) |
mode | String | "out-in" | Transition mode (in-out, out-in, or default) |
Supported Effects
You can use these values for the effect prop:
page– Smooth scale-in/out animationbounce– Bounce effect on enter/leavezoom-in-out– Zoom in/out transitionslide-left-to-right– Slide horizontallybounce-in-out– Bounce in/out animationup-down-effect– Slide up/down effectslide– Slide from leftbottom– Slide from bottomtop– Slide from top
Examples
Bounce Effect
vue
<animation-effect effect="bounce">
<p v-if="show">Hello with Bounce!</p>
</animation-effect>Slide from Bottom
vue
<animation-effect effect="bottom">
<div v-if="show" class="card">I'm sliding from bottom</div>
</animation-effect>Page Transition (Default)
vue
<animation-effect>
<section v-if="show">Default page transition effect</section>
</animation-effect>
Campus On Click