0.0.4 • Published 1 year ago

vue-page-element-transition v0.0.4

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

Introduction

Vue Page Element Transition is a Simple Vue Plugin That Creates Transitions Between Elements On Different Pages:

Usage

To start using the plugin, install it to your project:

npm i vue-page-element-transition

Import it

import vueElementTransition from 'vue-page-element-transition'

// ...

app.use(vueElementTransition)

Use vue transitions

<RouterView v-slot="{ route, Component }">
 <Transition>
   <component :is="Component" :key="route.path" />
 </Transition>
</RouterView>
//...
<style>
.v-enter-active, .v-leave-active {
 transition: opacity 0.5s ease;
}
</style>

And add the "v-element-transition" class to the target elements

<div v-element-transition>Example</div>
0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago

0.0.0

1 year ago