deja-vue
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 gsap
vue 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 install
Build the library package:
npm run build -w deja-vue
Run library type checks:
npm run typecheck -w deja-vue
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 2.2.0 | ^3.5.0 | MIT | |
| 2.1.3 | ^3.5.0 | MIT | |
| 2.1.2 | ^3.5.0 | MIT | |
| 2.1.1 | ^3.5.0 | MIT | |
| 2.1.0 | ^3.5.0 | MIT | |
| 2.0.1 | ^3.5.0 | MIT | |
| 1.0.1 | ^3.5.0 | MIT | |
| 0.2.0 | ^3.5.0 | MIT | |
| 0.1.0 | ^3.5.0 | MIT |