AnimeJS v4 for Nuxt and Vue

Anime.js composables for Nuxt

Use AnimeJS functions and utilities directly in component setup without using onMounted and other lifecycle hooks.

$pnpx nuxt module add nanime
Get startedBrowse the API

Animate with ease

Simple, declarative animation definitions

Call a composable, with the template ref as your target, and bind your animation params

<script setup lang="ts">
const box = useTemplateRef('box')

useAnimate(box, { x: 160, alternate: true, loop: true })
</script>

<template>
  <div ref="box" class="size-8 bg-(--current-color)" />
</template>
Preview

Drop in transitions

Drop in Transition and TransitionGroup components

Easily add flare and style to your transitions

const hop = { enter: { ... }, leave: { ... } }

<AnimeTransition :animation="hop">
  <div v-if="open" />
</AnimeTransition>
Copyright © 2026