deja-vue
v2.1.0
Published
Declarative GSAP Animations for Vue 3
Readme
Déjà Vue
Declarative GSAP animations for Vue 3.
Déjà Vue lets you compose GSAP tweens and timelines with Vue components, so animation logic can live next to the markup it animates.
Documentation
View the documentation or explore the landing page.
Install
npm install deja-vue gsapvue and gsap are peer dependencies. This library targets Vue 3.
Usage
<script setup lang="ts">
import { Tween } from 'deja-vue'
</script>
<template>
<Tween :from="{ opacity: 0, y: 24, duration: 0.6, ease: 'power3.out' }">
<h1>
Animated
with
Déjà
Vue
</h1>
</Tween>
</template>Use Tween for single animations, Timeline to coordinate sequences,
Marker for timeline checkpoints, and SplitText for text-based effects.
Development
Install dependencies from the repository root:
npm installBuild the library package:
npm run build -w deja-vueRun library type checks:
npm run typecheck -w deja-vue