@vue-gsap-flip/vue-router

Vue Router integration for vue-gsap-flip
2,652 3
Install
npm install @vue-gsap-flip/vue-router
Latest Version:1.1.0
Vue:3
License:MIT
Last Updated:Aug 15, 2025
Links: GitHub  ·  npm
Maintainer: lavolpecheprogramma

@vue-gsap-flip/vue-router

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.

Features

  • 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

Installation

npm install @vue-gsap-flip/vue-router vue-router

Usage

<script setup lang="ts"> import { flipManager } from '@vue-gsap-flip/core' import { VueFlipRouterPlugin } from '@vue-gsap-flip/vue-router' flipManager.registerPlugin(VueFlipRouterPlugin) </script>

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>

Documentation

For detailed documentation, examples, and advanced usage, visit:

📖 Full Documentation

License

MIT

Related Packages

@vue-gsap-flip/nuxt

Nuxt 3 module for vue-gsap-flip with auto-registration

947 3
wisspop

Modales y dropdowns con animaciones ancladas al origen: el panel nace del elemen...

1,970 0
gsap-nuxt-module

GSAP integration for Nuxt.

8,932 37
@minch/bentolio

A minimal portfolio template and layer built with Nuxt 4, Tailwind CSS 4, and GS...

4,130 11
vue-flipcard

A Vue flip card component

1,134 11

Version History

Version Released Vue License
1.1.0 ^3.0.0 MIT
1.0.3 ^3.0.0 MIT
1.0.2 ^3.0.0 MIT
1.0.1 ^3.0.0 MIT
1.0.0 ^3.0.0 MIT