Vue Router integration for vue-gsap-flip animations.
This package provides seamless integration between Vue Router and vue-gsap-flip, enabling smooth page transitions and route-based animations.
- Route Transitions: Smooth animations between Vue Router pages
- Navigation Guards: Automatic animation handling during navigation
- State Preservation: Maintains element states during route changes
- Seamless Integration: Works with existing Vue Router setup
npm install @vue-gsap-flip/vue-router vue-router
This plugin add the possibility to customize how and when an element have to flip based on the route changing.
<template>
<FlipElement
id="my-element"
:config="{
clone: true,
routes: [
// only on the about page
{ name: 'about' },
// only on the credits page if locale is 'it'
{ name: 'credits', params: { locale: 'it' } },
// only on product detail with id 123 and coming from product-list page
{
name: 'product-detail',
params: { id: '123' },
from: [
{ name: 'product-list' }
]
},
// all pages named with list-.. and coming from product list
{
name: /^list-.*$/,
from: [
{ name: 'product-list' }
]
}
]
}"
>
<div>Content that animates on specific routes</div>
</FlipElement>
</template>
For detailed documentation, examples, and advanced usage, visit:
MIT