@njdamstra/v-animate

Vue 3 animation composable with plugin-based architecture
1,994
Install
npm install @njdamstra/v-animate
Latest Version:0.1.3
Vue:3
License:MIT
Last Updated:Dec 23, 2025
Links: GitHub  ·  npm
Maintainer: njdamstra

@njdamstra/v-animate

Vue 3 animation composable with plugin-based architecture.

Installation

npm install @njdamstra/v-animate
# or
pnpm add @njdamstra/v-animate

Usage

import { useAnimation } from '@njdamstra/v-animate'

const { play, pause, stop, isPlaying } = useAnimation(elementRef, {
  animation: {
    preset: 'fadeIn',
    duration: 300
  },
  autoplay: { trigger: 'visible' }
})

Features

  • 11 animation plugins (8 core, 3 lazy-loaded)
  • 16 built-in presets
  • Environment-aware (respects prefers-reduced-motion)
  • SSR-safe
  • Full TypeScript support
  • Tree-shakeable

Plugins

Core (always loaded)

  • webAnimationPlugin - Web Animations API integration
  • responsivePlugin - Responsive breakpoint handling
  • cssAnimationPlugin - CSS animation support
  • staggerPlugin - Staggered animations for lists
  • cssVarsPlugin - CSS custom properties animation
  • autoplayPlugin - Visibility-triggered animations
  • scrollPlugin - Scroll-linked animations
  • timelinePlugin - Multi-phase timelines

Lazy-loaded

  • motionPathPlugin - SVG motion paths
  • gridPlugin - Grid layout animations
  • relationshipsPlugin - Connected element animations

Presets

import { animationPresets } from '@njdamstra/v-animate'

// Available presets:
// fadeIn, fadeOut, slideUp, slideDown, slideLeft, slideRight,
// scaleUp, scaleDown, popIn, popOut, bounceIn, shake,
// pulse, spin, flip, swing

License

MIT

Related Packages

@juleshry/vue-animejs

SSR-safe Vue 3 composables and directives for Anime.js v4 — reactive animations...

2,567 6
vueuse-temporals

Date related composables for atmosphere-ui

1,676 1
@morev/vue-transitions

Shareable Vue transitions library

412,603 222
animated-number-vue

A vue component with number animation

158,718 211
vue-starport

Shared Vue component across routes with animations

57,522 1,949

Version History

Version Released Vue License
0.1.3 ^3.3.0 MIT
0.1.2 ^3.3.0 MIT
0.1.1 ^3.3.0 MIT
0.1.0 ^3.3.0 MIT