---
title: "nanime"
description: "Anime.js v4 for Nuxt: SSR-safe, auto-imported composables and transitions for animation, scroll, drag and text"
canonical_url: "https://nanimejs.netlify.app"
---
# nanime

> Anime.js v4 for Nuxt: SSR-safe, auto-imported composables and transitions for animation, scroll, drag and text

<home-particles>



</home-particles>

<home-hero eyebrow="AnimeJS v4 for Nuxt and Vue" install="pnpx nuxt module add nanime" pitch="Use AnimeJS functions and utilities directly in component setup without using onMounted and other lifecycle hooks." title="Anime.js composables for Nuxt">
<u-button size="lg" to="https://nanimejs.netlify.app/getting-started/installation">

Get started

</u-button>

<u-button size="lg" to="https://nanimejs.netlify.app/composables/introduction" color="neutral" variant="outline">

Browse the API

</u-button>
</home-hero>

<home-section label="Animate with ease" title="Simple, declarative animation definitions" why="Call a composable, with the template ref as your target, and bind your animation params">
<home-animate-demo>

```vue
<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>
```

</home-animate-demo>
</home-section>

<home-section label="Drop in transitions" title="Drop in Transition and TransitionGroup components" why="Easily add flare and style to your transitions">
<home-transition-demo>

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

<AnimeTransition :animation="hop">
  <div v-if="open" />
</AnimeTransition>
```

</home-transition-demo>
</home-section>

<home-section label="What's in the box?" title="Ten composables, three components" why="A composable for each AnimeJS API, an experimental native timeline, and components that animate v-if, v-for and layout changes" link-label="All composables" to="https://nanimejs.netlify.app/composables/introduction">
<home-cards>
<home-card name="useAnimate" to="https://nanimejs.netlify.app/composables/use-animate">

Animate elements using refs, CSS targets with dynamic properties and keyframes

</home-card>

<home-card name="useWaapiAnimate" to="https://nanimejs.netlify.app/composables/use-waapi-animate">

Animate with the Web Animations API for simple animations off the main thread

</home-card>

<home-card name="useAnimatable" to="https://nanimejs.netlify.app/composables/use-animatable">

Smoothly follow a changing value, like a cursor or a meter

</home-card>

<home-card name="useAnimeTimeline" to="https://nanimejs.netlify.app/composables/use-anime-timeline">

Sequence several animations on one timeline

</home-card>

<home-card name="useWaapiTimeline" to="https://nanimejs.netlify.app/composables/use-waapi-timeline">

Sequence CSS tweens on the browser's own animation clock (experimental)

</home-card>

<home-card name="useSplitText" to="https://nanimejs.netlify.app/composables/use-split-text">

Split text into characters, words or lines, then animate each piece

</home-card>

<home-card name="useScrambleText" to="https://nanimejs.netlify.app/composables/use-scramble-text">

Scramble text into a new string

</home-card>

<home-card name="useDraggable" to="https://nanimejs.netlify.app/composables/use-draggable">

Make elements draggable, with snapping, release physics and bounds

</home-card>

<home-card name="useAnimeScroll" to="https://nanimejs.netlify.app/composables/use-anime-scroll">

Drive an animation from scroll progress

</home-card>

<home-card name="useAnimeLayout" to="https://nanimejs.netlify.app/composables/use-anime-layout">

Animate elements to their next layout when a property or dependency changes

</home-card>

<home-card name="<AnimeTransition />" to="https://nanimejs.netlify.app/components/transition">

Animate elements entering and leaving with `v-if` and `v-show`

</home-card>

<home-card name="<AnimeTransitionGroup />" to="https://nanimejs.netlify.app/components/transition-group">

Animate list items entering, leaving and moving in a `v-for`

</home-card>

<home-card name="<AnimeLayoutGroup />" to="https://nanimejs.netlify.app/components/layout-group">

A component form of `useAnimeLayout` that animates its children's layout changes

</home-card>
</home-cards>
</home-section>

<home-section label="AI agents" title="Built for AI agents" why="Install the agent skill or connect the MCP server to improve code writing and performance" link-label="Use with AI agents" to="https://nanimejs.netlify.app/getting-started/installation#use-with-ai-agents">
<home-cards>
<home-card name="Agent skill" to="https://nanimejs.netlify.app/getting-started/installation#use-with-ai-agents">

Teaches your coding agent the composables and transition components. Install:

```text
npx skills add astraldev/nanime --skill nanime
```

</home-card>

<home-card name="Docs MCP server" to="https://nanimejs.netlify.app/getting-started/installation#use-with-ai-agents">

Lets your agent search these docs on its own. Connect:

```text
claude mcp add --transport http nanime https://nanimejs.netlify.app/mcp
```

</home-card>
</home-cards>
</home-section>

## Resources for Agents

- [API catalog: every service document this site publishes](https://nanimejs.netlify.app/.well-known/api-catalog)
- [Sitemap (XML)](https://nanimejs.netlify.app/sitemap.xml)
- [Sitemap (Markdown): every page on the site](https://nanimejs.netlify.app/sitemap.md)
- [MCP server card: MCP endpoint at https://nanimejs.netlify.app/mcp](https://nanimejs.netlify.app/.well-known/mcp/server-card.json)
- [MCP endpoint (streamable HTTP)](https://nanimejs.netlify.app/mcp)
- [llms.txt: index of the documentation for LLMs](https://nanimejs.netlify.app/llms.txt)
- [llms-full.txt: the full documentation as a single file](https://nanimejs.netlify.app/llms-full.txt)
- [OpenAPI document: every route this site serves to agents](https://nanimejs.netlify.app/openapi.json)


## Sitemap

See the full [sitemap](https://nanimejs.netlify.app/sitemap.md) for all pages.
