# @morev/vue-transitions

> Shareable Vue transitions library

Latest version **4.0.0** (published 2026-10-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install @morev/vue-transitions
pnpm add @morev/vue-transitions
yarn add @morev/vue-transitions
bun add @morev/vue-transitions
```

## Health

**Score 75/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 4.0.0 |
| Published | 2026-10-04 |
| First published | 2022-03-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >= 18.12.0 |
| Dependencies | 2 |
| Unpacked size | 134.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 222 |
| Author | Maxim Morev |
| Maintainers | morev |
| Keywords | vue, transition, animation |

## Links

- npm: https://www.npmjs.com/package/@morev/vue-transitions
- Repository: https://github.com/MorevM/vue-transitions
- Homepage: https://github.com/MorevM/vue-transitions#readme
- npm.io page: https://npm.io/package/@morev/vue-transitions

## Dependencies (2)

- [@nuxt/kit](https://npm.io/package/@nuxt/kit.md) ^3.13.2
- [@morev/utils](https://npm.io/package/@morev/utils.md) ^3.11.1

## Alternatives

- [@luma.gl/experimental](https://npm.io/package/@luma.gl/experimental.md) — 77.1K weekly downloads
- [persona-harness](https://npm.io/package/persona-harness.md) — 4.7K weekly downloads
- [@tsparticles/effect-bubble](https://npm.io/package/@tsparticles/effect-bubble.md) — 4.6K weekly downloads
- [f3d](https://npm.io/package/f3d.md) — 730 weekly downloads
- [spark-html-motion](https://npm.io/package/spark-html-motion.md) — 298 weekly downloads

## Recent versions

- 4.0.0 (latest) — 2026-10-04
- 4.0.0-rc.1 (rc) — 2026-10-03
- 4.0.0-rc.0 — 2026-10-02
- 3.0.5 — 2024-11-04
- 3.0.3 — 2024-11-03
- 3.0.2 — 2024-03-12
- 3.0.1 — 2024-02-18
- 2.3.6 — 2023-01-17
- 2.3.5 — 2022-12-16
- 2.3.4 — 2022-12-02
- 2.3.3 — 2022-11-24
- 2.3.2 — 2022-11-24
- 2.3.1 — 2022-11-20
- 2.3.0 — 2022-11-20
- 2.2.2 — 2022-10-20
- … 13 more at https://npm.io/package/@morev/vue-transitions/versions

## README

![Promo image of @morev/vue-transitions package](./.github/images/header.svg)

![Stability of "master" branch](https://img.shields.io/github/actions/workflow/status/MorevM/vue-transitions/build.yaml?branch=master)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
![Last commit](https://img.shields.io/github/last-commit/morevm/vue-transitions)
![Release version](https://img.shields.io/github/v/release/morevm/vue-transitions?include_prereleases)
![GitHub Release Date](https://img.shields.io/github/release-date/morevm/vue-transitions)
![Keywords](https://img.shields.io/github/package-json/keywords/morevm/vue-transitions)

# @morev/vue-transitions

Reusable interface transitions for `Vue 2` and `Vue 3` with no CSS needed ❤️

✔️ Highly customizable via props; \
✔️ Correctly works with grid/flex layouts in `group` mode; \
✔️ Considers initial styles of animated elements such as `transform` or `opacity`; \
✔️ Even more easy-to-use with universal `Nuxt 2` and `Nuxt 3` module.

[Documentation and interactive demos]

## Table of contents

- [Documentation and interactive demos]
- [Installation](#installation)
  - [Requirements](#-requirements)
  - [Using `yarn`](#using-yarn)
  - [Using `npm`](#using-npm)
  - [Using `pnpm`](#using-pnpm)
  - [Using `bun`](#using-bun)
- [Usage](#usage)
  - [Global registration](#global-registration)
    - [Custom options](#custom-options)
  - [Direct import of components](#direct-import-of-components)
  - [Usage with Nuxt]
- [IntelliSense](#intellisense)
- [List of transitions](#list-of-transitions)
  - [TransitionFade](#transitionfade)
  - [TransitionMixed](#transitionmixed)
  - [TransitionExpand](#transitionexpand)
  - [TransitionSlide]
  - [TransitionScale]
- [Props](#props)
  - [Common props](#common-props)
  - [Unique props of `TransitionExpand`]
  - [Unique props of `TransitionSlide`]
  - [Unique props of `TransitionScale`]
- [Events](#events)

## Installation

### ❗ Requirements

- Node version: `>= 18.12.0`
- Nuxt version (if used): `>= 2.17.0 || >= 3.5.0`

**The plugin will not work if you are using a Node or Nuxt version less than the specified ones.**

---

### Using `yarn`

```sh
yarn add @morev/vue-transitions
```

---

### Using `npm`

```sh
npm install @morev/vue-transitions
```

---

### Using `pnpm`

```sh
pnpm add @morev/vue-transitions
```

---

### Using `bun`

```sh
bun add @morev/vue-transitions
```

---

## Usage

> You may skip the following paragraphs if you are going to use the library with Nuxt. \
> [Go to "Usage with Nuxt" section][Usage with Nuxt].

The package provides dedicated entrypoints for both Vue versions:

- `@morev/vue-transitions` targets Vue 3. \
  `@morev/vue-transitions/vue3` is an explicit alias for the Vue 3 entrypoint.
- `@morev/vue-transitions/vue2` targets Vue 2.

Transition styles are included automatically when you import the plugin or individual components.

### Global registration

#### Using `Vue3`

```js
import { createApp } from 'vue';
import { plugin as vueTransitionsPlugin } from '@morev/vue-transitions';

const app = createApp(App);

app.use(vueTransitionsPlugin({
  // Plugin options (optional, described below)
}));
```

#### Using `Vue2`

```js
import Vue from 'vue';
import { plugin as vueTransitionsPlugin } from '@morev/vue-transitions/vue2';

Vue.use(vueTransitionsPlugin, {
  // Plugin options (optional, described below)
});
```

<details>
  <summary>Transition styles are missing?</summary>

Some build tools may not load the styles automatically. In that case, import them once in your app entrypoint:

```js
import '@morev/vue-transitions/styles';
```

</details>

---

#### Custom options

> It's recommended to use the named export `plugin` instead of default export when setting custom options to get proper type information.

Custom options allows to change default property values. \
To change the defaults, pass the `defaultProps` key to the plugin settings, listing the key-value pairs of desired props. \
You may also change default props per-component, to do so just pass the `componentDefaultProps` key to plugin settings.

> **Important**: these props are not validated, so make sure you define them with right values.

```js
import { createApp } from 'vue';
import { plugin as vueTransitionsPlugin } from '@morev/vue-transitions';

const app = createApp(App);

app.use(vueTransitionsPlugin({
  // Default duration for all transitions now is `200`
  defaultProps: {
    duration: 200,
  },
  // But for `<transition-expand>` default duration is `500`
  componentDefaultProps: {
    TransitionExpand: {
      duration: 500,
    }
  }
}));
```

---

### Direct import of components

```vue
<template>
  <transition-fade>
    <div v-if="isVisible" class="box">
      Fade transition
    </div>
  </transition-fade>
</template>

<script>
  import { TransitionFade } from '@morev/vue-transitions';

  export default {
    components: { TransitionFade },
  };
</script>
```

The example uses Vue 3. Import the component from `@morev/vue-transitions/vue2` in a Vue 2 application.

### Usage with Nuxt

The library exports a ready-to-use universal module for Nuxt 2 and 3 via named export `/nuxt`. \
The module selects the matching Vue entrypoint from the detected Nuxt major version. \
Using Nuxt, it's recommended to use the module instead of manual installation because:

1. Nuxt allows to auto-import components on demand instead of global registration, which is a more performant option.
1. It's just faster to do :)

To use, add `@morev/vue-transitions/nuxt` to the `modules` section of your `nuxt.config.ts` / `nuxt.config.js`:

```ts
export default defineNuxtConfig({
  modules: [
    '@morev/vue-transitions/nuxt',
  ],
  vueTransitions: {
    // The same options as in the plugin itself.
    // You will get an autocomplete using Nuxt 3.
  }
});
```

Enjoy you transition components! 🎉

## IntelliSense

> **You may skip this section using Nuxt module - it does it for you.**
>
> This section only applies to [VSCode](https://code.visualstudio.com/) setup and global registration of components.

### With Vue 2

Using Vue 2 with [Vetur](https://marketplace.visualstudio.com/items?itemName=octref.vetur)
extension installed all components should provide hints as it, no actions required:

![Example of IntelliSense with VSCode and Vetur](./.github/images/intellisense-vue2.jpg)

### With Vue 3

Using Vue 3 with [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar)
extension installed all components should provide hints as it, no actions required:

![Example of IntelliSense with VSCode and Volar](./.github/images/intellisense-vue3.jpg)

## List of transitions

### TransitionFade

Basic transition that changes element `opacity`. Pretty simple.

<details>
  <summary>Show code</summary>

```vue
<template>
  <transition-fade>
    <div v-if="isVisible">...</div>
  </transition-fade>
</template>

<script>
  import { TransitionFade } from '@morev/vue-transitions';

  export default {
    components: { TransitionFade },
  };
</script>
```

</details>

---

### TransitionExpand

Transition that manipulates with actual element size. \
If you are old enough you may know this transition as jQuery [`slideUp/slideDown`](https://api.jquery.com/slideup/). \
It also can work with `X` axis like `slideLeft` and `slideRight`
(although it's hard for me to come up with a scenario where it will really be needed).

Has [unique prop][Unique props of `TransitionExpand`]: `axis`

---

### TransitionSlide

Transition that manipulates with element position via `transform: translate()`. \
It requires `offset` prop to calculate desired element position and can work with percentage values.

<details>
  <summary>Examples how to work with <code>offset</code> prop</summary>

```vue
<template>
  <!--
    Element will fade in and fade out to top.
    Initial transform is `transform: translate(0, -16px)`
  -->
  <transition-slide :offset="[0, -16]"></transition-slide>

  <!--
    Element will fade in and fade out to bottom left side.
    Initial transform is `transform: translate(-16px, 16px)`
  -->
  <transition-slide :offset="[-16, 16]"></transition-slide>

  <!--
    Element will fade in and fade out to right,
    and the offset will be relative to the element width itself.
    Initial transform is `transform: translate(100%, 0)`
  -->
  <transition-slide :offset="['100%', 0]"></transition-slide>

  <!--
    Element will fade in from top and fade out to bottom,
    and the offset will be relative to the element height itself.

    Transform before element appears: `transform: translate(0, -100%)`
    Transform when element disappears: `transform: translate(0, 100%)`
  -->
  <transition-slide
    :offset="{
      enter: [0, '-100%'],
      leave: [0, '100%']
    }"
  ></transition-slide>
</template>
```

</details>

It respects the transform applied to element itself via CSS and merges it with defined offset. \
It's very useful, for example, when you are trying to make centered dropdown.

<details>
  <summary>👀 Show example of `transform` merging</summary>

```vue
<template>
  <div class="block">
    <!--
      In this case, given the CSS styles,
      initial transform will be calculated to `translate(-50%, -16px)`
    -->
    <transition-slide :offset="[0, -16]">
      <div class="block__dropdown" v-if="isVisible">
        ...
      </div>
    </transition-slide>
  </div>
</template>

<style>
  .block {
    position: relative;
  }

  .block__dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
  }
</style>
```

</details>

Has [unique prop][Unique props of `TransitionSlide`]: `offset`

---

### TransitionScale

Transition that manipulates with element `transform: scale()`. \
By default, it scales element from `scale(1)` to `scale(0)`, but this behavior can be customized via `:scale` prop. \
It works with different axis via [axis][Unique props of `TransitionScale`] prop.

Has [unique props][Unique props of `TransitionScale`]: `scale`, `axis`, `origin`

<details>
  <summary>Show example of code</summary>

```vue
<template>
  <!--
    This element appears in `x` axis and disappears in `y`
  -->
  <transition-scale :axis="{ enter: 'x', leave: 'y' }"></transition-scale>

  <!--
    This element behaves like the `transition-expand`,
    but touches only `transform` property
  -->
  <transition-scale transform-origin="50% 0%"></transition-scale>

  <!--
    This element scales just a little when fading in/out.
  -->
  <transition-scale :scale=".8"></transition-scale>

</template>
```

</details>


---

### TransitionMixed

Transition that uses independently configured presets when an element enters and leaves.
The component supports the same common props and lifecycle events as the other transitions.

The `enter` and `leave` props are required objects with a `preset` property.
Preset-specific options are declared inside the corresponding object.

```vue
<template>
  <transition-mixed
    :enter="{
      preset: 'scale',
      scale: 0.8,
      origin: '50% 50%',
    }"
    :leave="{
      preset: 'slide',
      offset: [0, '100%'],
    }"
    :duration="{
      enter: 180,
      leave: 240,
    }"
  >
    <div v-if="isVisible">...</div>
  </transition-mixed>
</template>

<script>
  import { TransitionMixed } from '@morev/vue-transitions';

  export default {
    components: { TransitionMixed },
  };
</script>
```

Available descriptors:

```ts
type TransitionPreset =
  | { preset: 'fade' }
  | { preset: 'expand'; axis?: 'x' | 'y' }
  | {
      preset: 'scale';
      axis?: 'x' | 'y' | 'both';
      origin?: string;
      scale?: number;
    }
  | {
      preset: 'slide';
      offset?: [number | string, number | string];
    };
```

## Props

### Common props

Those properties are related to each transition:

<details>
  <summary><code>group</code></summary>
  <br />

Whether the component should be a [`transition-group`] component.

```ts
export type TransitionGroup = boolean; // Default: false
```

**Example:**

```vue
<template>
  <div>
    <!--
      To animate a list of items, use `group` prop.
      ⚠️ Don't forget you should pass the `:key` to each item in this case.
    -->
    <transition-fade group>
      <div v-for="item in items" :key="item.id">...</div>
    </transition-fade>
  </div>
</template>
```

</details>

<details>
  <summary><code>tag</code></summary>
  <br />

Transition tag, in the case of using a [`transition-group`] component.

```ts
export type TransitionTag = string; // Default: 'span'
```

**Example:**

```vue
<template>
  <div>
    <!--
      Passing the tag renders transition component with it.
      It's suitable, for example, for rendering semantic lists:
    -->
    <transition-fade group tag="ul">
      <li v-for="item in items" :key="item.id">...</li>
    </transition-fade>

    <!-- ✨ Rendered HTML: -->
    <ul>
      <li>...</li>
      <li>...</li>
    </ul>
  </div>
</template>
```

</details>

<details>
  <summary><code>appear</code></summary>
  <br />

Whether to apply a transition on the initial render of a node.
Acts literally the same as original
[Vue transition appear prop](https://v2.vuejs.org/v2/guide/transitions.html?redirect=true#Transitions-on-Initial-Render)

```ts
export type TransitionAppear = boolean; // Default: undefined
```

**Example:**

```vue
<template>
  <div>
    <!--
      This element appears when mounted if `isVisible` is `true` by default.
    -->
    <transition-fade appear>
      <div v-if="isVisible">...</div>
    </transition-fade>
  </div>
</template>
```

</details>

<details>
  <summary><code>mode</code></summary>
  <br />

[Transition mode](https://v2.vuejs.org/v2/guide/transitions.html?redirect=true#Transition-Modes).

```ts
export type TransitionMode = 'in-out' | 'out-in' | undefined; // Default: undefined
```

**Example:**

```vue
<template>
  <div>
    <!--
      Current element transitions out first, then when complete,
      the new element transitions in.
    -->
    <transition-slide mode="out-in">
      <component :is="currentComponent">...</component>
    </transition-slide>
  </div>
</template>
```

</details>

<details>
  <summary><code>motion</code></summary>
  <br />

Controls whether transitions are animated:

- `system` disables animations when `prefers-reduced-motion: reduce` matches.
- `enabled` always animates, ignoring the system preference.
- `disabled` always performs transitions without animation or delay.

Lifecycle events still fire when animations are disabled. The system preference is read once in the browser and
refreshed after a page reload. Changes to an explicit `motion` prop apply to transitions started after the change.

```ts
export type MotionPolicy = 'system' | 'enabled' | 'disabled'; // Default: 'system'
```

**Example:**

```vue
<template>
  <transition-slide :motion="animationsEnabled ? 'enabled' : 'disabled'">
    <div v-if="isVisible">...</div>
  </transition-slide>
</template>
```

</details>

<details>
  <summary><code>duration</code></summary>
  <br />

Transition animation duration, ms. \
If an object given then `enter` and `leave` values will be used for enter and leave transition respectively.

```ts
// Default: 300
export type TransitionDuration = number | { enter: number, leave: number }
```

**Example:**

```vue
<template>
  <div>
    <!--
      If single value provided, the passed amount of milliseconds
      applied to enter and leave animations both.
      This element will appear and disappear within 500ms:
    -->
    <transition-fade :duration="500">
      <div v-if="isVisible">...</div>
    </transition-fade>

    <!--
      If an object given, it SHOULD have `enter` and `leave` keys.
      This element appears in 200ms and disappears within 500ms:
    -->
    <transition-fade :duration="{ enter: 200, leave: 500 }">
      <div v-if="isVisible">...</div>
    </transition-fade>
  </div>
</template>
```

</details>

<details>
  <summary><code>move-duration</code></summary>
  <br />

Duration of animation of elements positions changing, in the case of using a `transition-group`.

Although Vue does not have a native way to set the duration of the move animation via props, this task can be done using
[CSS Custom Properties](https://css-tricks.com/a-complete-guide-to-custom-properties/).

<details>
    <summary>👀 Show explanation</summary>
    <br />

    ```html
    <!-- This way it can be set dynamically -->
    <div style="--move-duration: 300ms;">
      <div class="scale-move"></div>
      <div class="scale-move"></div>
    </div>
    ```

    ```css
    .scale-move {
      transition-duration: var(--move-duration, 300ms);
    }
    ```

</details>

```ts
// Default: 300
export type TransitionMoveDuration = number;
```

</details>

<details>
  <summary><code>delay</code></summary>
  <br />

Transition animation delay, ms.\
If an object given then `enter` and `leave` values will be used for enter and leave transition respectively.

```ts
// Default: 300
export type TransitionDelay = number | { enter: number, leave: number };
```

**Example:**

```vue
<template>
  <div>
    <!--
      If single value provided, then enter and leave animations will wait
      for given amount of milliseconds before run.
      This element will appear and disappear 100ms after
      `isVisible` property changes:
    -->
    <transition-fade :delay="100">
      <div v-if="isVisible">...</div>
    </transition-fade>

    <!--
      If an object given, it SHOULD have `enter` and `leave` keys.
      This element appears immediately and disappears 200ms after
      `isVisible` property changes:
    -->
    <transition-fade :duration="{ enter: 0, leave: 300 }">
      <div v-if="isVisible">...</div>
    </transition-fade>
  </div>
</template>
```

</details>

<details>
  <summary><code>stagger</code></summary>
  <br />

Additional delay between children entering or leaving a `transition-group` in the same update, in milliseconds.
The first child uses the regular `delay`; each following child adds another `stagger` interval.

If an object is given, its `enter` and `leave` values are used for the corresponding transition phases.

```ts
// Default: 0
export type TransitionStagger = number | { enter: number, leave: number };
```

**Example:**

```vue
<template>
  <transition-fade group tag="ul" :stagger="{ enter: 80, leave: 40 }">
    <li v-for="item in items" :key="item.id">
      {{ item.label }}
    </li>
  </transition-fade>
</template>
```

The sequence uses the DOM order of only those children that enter or leave together. `stagger` has no effect outside
group mode and does not delay move animations.

</details>

<details>
  <summary><code>easing</code></summary>
  <br />

Transition animation easing. Should be a valid CSS transition timing function. \
If an object given then `enter` and `leave` values will be used for enter and leave transition respectively.

```ts
export type TransitionEasing = string; // Default: 'cubic-bezier(.25, .8, .5, 1)'
```

**Example:**

```vue
<template>
  <div>
    <!--
      If single value provided, then enter and leave animations will use it:
    -->
    <transition-fade easing="ease-out">
      <div v-if="isVisible">...</div>
    </transition-fade>

    <!--
      If an object given, it SHOULD have `enter` and `leave` keys.
      This element uses custom animation known as `bounce-in` for entering
      and simple `ease-out` curve for leaving:
    -->
    <transition-fade
      :easing="{
        enter: 'cubic-bezier(0.6, 0, 0.4, 2)',
        leave: 'ease-out'
      }"
    >
      <div v-if="isVisible">...</div>
    </transition-fade>
  </div>
</template>
```

</details>

<details>
  <summary><code>no-opacity</code></summary>
  <br />

Whether to **not** animate the element `opacity`.

By default, each transition manipulates `opacity` in addition to the main property. \
However, sometimes this is not required - for example, when implementing modal panels that appear from the edge of the screen.

> The prop is obviously not applicable to `transition-fade` component.


```ts
export type TransitionNoOpacity = boolean; // Default: false
```

**Example:**

```vue
<template>
  <div>
    <!--
      This panel appears from the right edge of the screen,
      while its transparency remains unchanged.
    -->
    <transition-slide :offset="['100%', 0]" no-opacity>
      <div class="panel" v-if="isVisible">...</div>
    </transition-slide>
  </div>
</template>

<style>
  .panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    width: 400px;
  }
</style>
```

</details>

<details>
  <summary><code>no-move</code></summary>
  <br />

Whether to **not** animate elements positions changing, in the case of using a `transition-group`.

By default, when using `group` mode, when an element is removed, the remaining elements smoothly change their position. \
They are given absolute positioning and dropped out of the flow, so the parent container collapses in height.

Usually this is not a problem, but sometimes - for example, when using `transition-expand` and
sequentially placed elements under each other, it looks rough. \
With this option, you can achieve a more pleasant behavior of the elements in this situation.

```ts
export type TransitionNoMove = boolean; // Default: false
```

**Example:**

```vue
<template>
  <div>
    <!--
      In this case, the height of the parent element (`ul`) changes smoothly.
    -->
    <transition-expand group no-move tag="ul">
      <li v-for="item in items" :key="item.id">...</li>
    </transition-expand>
  </div>
</template>
```

</details>

---

### Unique props of `TransitionExpand`

<details>
  <summary><code>axis</code></summary>
  <br />

Axis by which the element should expand. \
If an object given then `enter` and `leave` values will be used for enter and leave transition respectively.

```ts
type ExpandAxisValue = 'x' | 'y'; // Default: 'y'
export type TransitionExpandAxis = ExpandAxisValue | { enter: ExpandAxisValue, leave: ExpandAxisValue }
```

</details>

---

### Unique props of `TransitionSlide`

<details>
  <summary><code>offset</code></summary>
  <br />

The element offset by `x` and `y` axis before/after the transition. \
Should be an integer or a string representation of percentage value (e.g. `'100%'`).

Number values treats as `px` offset, string values ending with `%` sign treats as `percentage of the element width / height`. \
[Examples and explanation][TransitionSlide]

If an object given then `enter` and `leave` values will be used for enter and leave transition respectively.

```ts
type SlideOffsetValue = [number | string, number | string];

// Default: [0, -16]
export type TransitionSlideOffset = SlideOffsetValue | { enter: SlideOffsetValue, leave: SlideOffsetValue }
```

</details>

---

### Unique props of `TransitionScale`

<details>
  <summary><code>axis</code></summary>
  <br />

Scale axis to be animated.

    * `both` (uses `transform: scale()`)
    * `x` (uses `transform: scaleX()`)
    * `y` (uses `transform: scaleY()`)

[Examples and explanation][TransitionScale]

If an object given then `enter` and `leave` values will be used for enter and leave transition respectively.

```ts
type ScaleAxisValue = 'x' | 'y' | 'both';

// Default: 'both'
export type TransitionScaleAxis = ScaleAxisValue | { enter: ScaleAxisValue, leave: ScaleAxisValue }
```

</details>

<details>
  <summary><code>origin</code></summary>
  <br />

`transform-origin` CSS property applied to element(s).

If an object given then `enter` and `leave` values will be used for enter and leave transition respectively.

[Examples and explanation][TransitionScale]

If an object given then `enter` and `leave` values will be used for enter and leave transition respectively.

```ts
// Default: '50% 50%'
export type TransitionScaleAxis = string | { enter: string, leave: string }
```

</details>

<details>
  <summary><code>scale</code></summary>
  <br />

The element scale value before/after the transition. Should be a number between `0` and `1`.

If an object given then `enter` and `leave` values will be used for enter and leave transition respectively.

[Examples and explanation][TransitionScale]

If an object given then `enter` and `leave` values will be used for enter and leave transition respectively.

```ts
// Default: 0
export type TransitionScaleScale = number | { enter: number, leave: number }
```

</details>

---

## Events

Components expose the standard transition lifecycle events:

- `before-enter`
- `enter`
- `after-enter`
- `enter-cancelled`
- `before-leave`
- `leave`
- `after-leave`
- `leave-cancelled`
- `before-appear`
- `appear`
- `after-appear`
- `appear-cancelled`

[Documentation and interactive demos]: https://morevm.github.io/vue-transitions/
[TransitionScale]: #transitionscale
[TransitionSlide]: #transitionslide
[Unique props of `TransitionExpand`]: #unique-props-of-transitionexpand
[Unique props of `TransitionScale`]: #unique-props-of-transitionscale
[Unique props of `TransitionSlide`]: #unique-props-of-transitionslide
[Usage with Nuxt]: #usage-with-nuxt
[`transition-group`]: https://v2.vuejs.org/v2/guide/transitions.html#List-Transitions

---
_Source: https://npm.io/package/@morev/vue-transitions · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
